<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();

$infoSysArr = Cache::PhpFile('infoSys');
$userSysArr = Cache::PhpFile('userSys');


/* **** 版权所有 ****

 程序开发：网钛科技
 网钛CMS官网：http://otcms.com
 网钛IDC官网：http://idccms.com
 ＱＱ：877873666
 微信：tudougeaini
 邮箱：877873666@qq.com

 **** 版权所有 **** */


//打开用户表，并检测用户是否登录
$MB->Open('','login');

$skin->WebTop();


echo('
<script language="javascript" type="text/javascript" src="js/inc/list.js?v='. OT_VERSION .'"></script>
<script language="javascript" type="text/javascript" src="js/inc/trim.js?v='. OT_VERSION .'"></script>
<script language="javascript" type="text/javascript" src="js/info.js?v='. OT_VERSION .'"></script>
');



switch ($mudi){
	case 'add':
		$MB->IsSecMenuRight('alertBack',9,$dataType);
		AddOrRev();
		break;

	case 'rev':
		$MB->IsSecMenuRight('alertBack',10,$dataType);
		AddOrRev();
		break;

	case 'manage':
		$MB->IsSecMenuRight('alertBack',51,$dataType);
		manage();
		break;

	case 'infoContent':
		$MB->IsSecMenuRight('alertBack',51,$dataType);
		InfoContent();
		break;

	default:
		die('err');
}

$skin->WebBottom();

$MB->Close();
$DB->Close();





// 新增、修改信息
function AddOrRev(){
	global $DB,$MB,$skin,$mudi,$dataType,$dataTypeCN,$systemArr,$infoSysArr,$userSysArr;

	$mudi2			= OT::GetStr('mudi2');
	$dataMode		= OT::GetStr('dataMode');
	$dataModeStr	= OT::GetStr('dataModeStr');
	$backURL		= OT::GetStr('backURL');
	$dataID			= OT::GetInt2( OT::ParaArr('id') );

	$beforeURL = GetUrl::CurrDir(1);

	if ($mudi=='rev'){
		$revexe = $DB->query('select * from '. OT_dbPref .'info where IF_ID='. $dataID);
			if (! $row = $revexe->fetch()){
				JS::AlertBackEnd('无该记录！');		
			}
		$IF_ID			= $row['IF_ID'];
		$IF_time		= $row['IF_time'];
		$IF_revTime		= $row['IF_revTime'];
		$IF_isOri		= $row['IF_isOri'];
		$IF_typeStr		= $row['IF_typeStr'];
		$IF_type1ID		= $row['IF_type1ID'];
			AppAdminRightNews::InfoRevCheck($MB->mRightStr, $IF_type1ID, $row['IF_type2ID'], $row['IF_adminID'], $MB->mUserID);
		$IF_source		= $row['IF_source'];
		$IF_writer		= $row['IF_writer'];
		$IF_theme		= $row['IF_theme'];
		$IF_themeStyle	= $row['IF_themeStyle'];
		$IF_URL			= $row['IF_URL'];
		$IF_isEncUrl	= $row['IF_isEncUrl'];
		$IF_template	= $row['IF_template'];
		$IF_templateWap	= $row['IF_templateWap'];
		$IF_themeKey	= $row['IF_themeKey'];
		$IF_contentKey	= $row['IF_contentKey'];
		$IF_tabID		= $row['IF_tabID'];
		if ($row['IF_tabID'] > 0){
			$IF_content	= Info::GetTabContent($row['IF_tabID'], $dataID);
		}else{
			$IF_content	= $row['IF_content'];
		}
		$IF_upImgStr	= $row['IF_upImgStr'];
		$IF_pageNum		= $row['IF_pageNum'];
		$IF_isAudit		= $row['IF_isAudit'];
		$IF_isNew		= $row['IF_isNew'];
		$IF_isHomeThumb	= $row['IF_isHomeThumb'];
		$IF_isThumb		= $row['IF_isThumb'];
		$IF_isImg		= $row['IF_isImg'];
		$IF_isFlash		= $row['IF_isFlash'];
		$IF_isMarquee	= $row['IF_isMarquee'];
		$IF_isRecom		= $row['IF_isRecom'];
		$IF_isTop		= $row['IF_isTop'];
		$IF_img			= $row['IF_img'];
		$IF_fileName	= $row['IF_fileName'];
		$IF_file		= $row['IF_file'];
		$IF_fileStr		= $row['IF_fileStr'];
			if (strlen(''. $IF_fileStr) == 0 && strlen(''. $IF_file) > 0){
				$IF_fileStr = $IF_file .'|'. $IF_fileName .'|';
				$IF_fileName = '';
				$IF_file = '';
			}
		$IF_isRenameFile= $row['IF_isRenameFile'];
		$IF_voteMode	= $row['IF_voteMode'];
		$IF_voteStr		= $row['IF_voteStr'];
		$IF_isMarkNews	= $row['IF_isMarkNews'];
		$IF_isReply		= $row['IF_isReply'];
		$IF_topAddiID	= $row['IF_topAddiID'];
		$IF_addiID		= $row['IF_addiID'];
		$IF_readNum		= $row['IF_readNum'];
		$IF_state		= $row['IF_state'];
		$IF_wapState	= $row['IF_wapState'];

		$imgUrl		= $beforeURL . InfoImgDir;
		$IF_content	= str_replace(InfoImgAdminDir,$imgUrl,$IF_content);

		$IF_userID		= $row['IF_userID'];
		$IF_isCheckUser	= $row['IF_isCheckUser'];
		$IF_freeGroupList = $row['IF_freeGroupList'];
		$IF_userGroupList = $row['IF_userGroupList'];
		$IF_userLevel	= $row['IF_userLevel'];
		$IF_score1		= $row['IF_score1'];
		$IF_score2		= $row['IF_score2'];
		$IF_score3		= $row['IF_score3'];
		$IF_cutScore1	= $row['IF_cutScore1'];
		$IF_cutScore2	= $row['IF_cutScore2'];
		$IF_cutScore3	= $row['IF_cutScore3'];
		$IF_infoTypeDir	= $row['IF_infoTypeDir'];
		$IF_datetimeDir	= $row['IF_datetimeDir'];
		$IF_adminID		= $row['IF_adminID'];
		$IF_addition	= $row['IF_addition'];
		$IF_auditNote	= $row['IF_auditNote'];
		$IF_mediaFile		= $row['IF_mediaFile'];
		$IF_mediaEvent		= $row['IF_mediaEvent'];
		$IF_titleAddi		= $row['IF_titleAddi'];
		$IF_isTitle			= $row['IF_isTitle'];
		$IF_isUserFile		= $row['IF_isUserFile'];
		$IF_isSitemap		= $row['IF_isSitemap'];
		$IF_isXiongzhang	= $row['IF_isXiongzhang'];
		// $IF_bdPing		= $row['IF_bdPing'];
		$IF_topicList		= $row['IF_topicList'];
		$IF_isEnc			= $row['IF_isEnc'];
		$IF_encContent		= $row['IF_encContent'];
		$IF_encContent		= str_replace(InfoImgAdminDir,$imgUrl,$IF_encContent .'');
		$IF_resBaidu		= $row['IF_resBaidu'];
		$IF_res360			= $row['IF_res360'];
		$IF_resSogou		= $row['IF_resSogou'];
		$IF_resShenma		= $row['IF_resShenma'];
		$IF_resToutiao		= $row['IF_resToutiao'];
		$IF_resBing			= $row['IF_resBing'];
		$IF_pwdAnswer		= $row['IF_pwdAnswer'];
		$IF_pwdImg			= $row['IF_pwdImg'];
		$IF_pwdNote			= $row['IF_pwdNote'];
		$IF_cutQuickMoney	= floatval($row['IF_cutQuickMoney']);
		$IF_themeKeyIdStr	= $row['IF_themeKeyIdStr'];
		$IF_prevNewsId		= $row['IF_prevNewsId'];
		$IF_nextNewsId		= $row['IF_nextNewsId'];
		$IF_markNewsTime	= $row['IF_markNewsTime'];
		$IF_prevNextTime	= $row['IF_prevNextTime'];
		$IF_imgNum			= $row['IF_imgNum'];
		$IF_imgHttpNum		= $row['IF_imgHttpNum'];
		$IF_imgOssNum		= $row['IF_imgOssNum'];
		$IF_imgLocalNum		= $row['IF_imgLocalNum'];
		$IF_fileNum			= $row['IF_fileNum'];
		$IF_fileHttpNum		= $row['IF_fileHttpNum'];
		$IF_fileOssNum		= $row['IF_fileOssNum'];
		$IF_fileLocalNum	= $row['IF_fileLocalNum'];
		$IF_videoID			= $row['IF_videoID'];
		$IF_username		= $row['IF_username'];
		$IF_scoreUserList	= $row['IF_scoreUserList'];
		$IF_payUserMul		= $row['IF_payUserMul'];
		$IF_score4			= $row['IF_score4'];
		$IF_score5			= $row['IF_score5'];
		$IF_cutScore4		= $row['IF_cutScore4'];
		$IF_cutScore5		= $row['IF_cutScore5'];
		$IF_field1			= $row['IF_field1'];
		$IF_field2			= $row['IF_field2'];
		$IF_field3			= $row['IF_field3'];
		$IF_mediaPcW		= $row['IF_mediaPcW'];
		$IF_mediaPcH		= $row['IF_mediaPcH'];
		$IF_mediaWapW		= $row['IF_mediaWapW'];
		$IF_mediaWapH		= $row['IF_mediaWapH'];

		$itemStr = '
			<tr>
				<td align="right" class="font1_2d">修改ID：</td>
				<td align="left">
					'. AdmArea::NumRevBox('revID', $dataID) .'
					<span style="color:red;">&ensp;&ensp;（谨慎修改，修改网址会变，与文章ID关联的内容会丢失，比如评论，以及修改ID不要跟其他文章ID冲突不然会修改失败）</span>
				</td>
			</tr>
			';

		$mudiCN = '修改';
		$submitCN = '修 改';
	}else{
		if ($dataID > 0){
			$revexe = $DB->query('select * from '. OT_dbPref .'info where IF_ID='. $dataID);
			if ($row = $revexe->fetch()){
				$IF_isOri		= $row['IF_isOri'];
				$IF_typeStr		= $row['IF_typeStr'];
				$IF_type1ID		= $row['IF_type1ID'];
				$IF_source		= $row['IF_source'];
				$IF_writer		= $row['IF_writer'];
				$IF_themeStyle	= $row['IF_themeStyle'];
				$IF_URL			= $row['IF_URL'];
				$IF_isEncUrl	= $row['IF_isEncUrl'];
				$IF_template	= $row['IF_template'];
				$IF_templateWap	= $row['IF_templateWap'];
				$IF_pageNum		= $row['IF_pageNum'];
				$IF_isAudit		= $row['IF_isAudit'];
				$IF_isNew		= $row['IF_isNew'];
				$IF_isHomeThumb	= $row['IF_isHomeThumb'];
				$IF_isThumb		= $row['IF_isThumb'];
				$IF_isImg		= $row['IF_isImg'];
				$IF_isFlash		= $row['IF_isFlash'];
				$IF_isMarquee	= $row['IF_isMarquee'];
				$IF_isRecom		= $row['IF_isRecom'];
				$IF_isTop		= $row['IF_isTop'];
				$IF_readNum			= OT::RndNumTo($infoSysArr['IS_defReadNum1'],$infoSysArr['IS_defReadNum2']);
				$IF_voteMode		= $row['IF_voteMode'];
				$IF_voteStr			= $row['IF_voteStr'];
				$IF_isMarkNews		= $row['IF_isMarkNews'];
				$IF_isReply			= $row['IF_isReply'];
				$IF_topAddiID		= $row['IF_topAddiID'];
				$IF_addiID			= $row['IF_addiID'];
				$IF_state			= $row['IF_state'];
				$IF_wapState		= $row['IF_wapState'];
				$IF_userID			= $row['IF_userID'];
				$IF_isCheckUser		= $row['IF_isCheckUser'];
				$IF_freeGroupList	= $row['IF_freeGroupList'];
				$IF_userGroupList	= $row['IF_userGroupList'];
				$IF_userLevel		= $row['IF_userLevel'];
				$IF_score1			= $row['IF_score1'];
				$IF_score2			= $row['IF_score2'];
				$IF_score3			= $row['IF_score3'];
				$IF_cutScore1		= $row['IF_cutScore1'];
				$IF_cutScore2		= $row['IF_cutScore2'];
				$IF_cutScore3		= $row['IF_cutScore3'];
				$IF_addition		= $row['IF_addition'];
				$IF_cutQuickMoney	= floatval($row['IF_cutQuickMoney']);
				$IF_imgNum			= $row['IF_imgNum'];
				$IF_imgHttpNum		= $row['IF_imgHttpNum'];
				$IF_imgOssNum		= $row['IF_imgOssNum'];
				$IF_imgLocalNum		= $row['IF_imgLocalNum'];
				$IF_fileNum			= $row['IF_fileNum'];
				$IF_fileHttpNum		= $row['IF_fileHttpNum'];
				$IF_fileOssNum		= $row['IF_fileOssNum'];
				$IF_fileLocalNum	= $row['IF_fileLocalNum'];
				$IF_videoID			= $row['IF_videoID'];
				$IF_username		= $row['IF_username'];
				$IF_scoreUserList	= $row['IF_scoreUserList'];
				$IF_payUserMul		= $row['IF_payUserMul'];
				$IF_score4			= $row['IF_score4'];
				$IF_score5			= $row['IF_score5'];
				$IF_cutScore4		= $row['IF_cutScore4'];
				$IF_cutScore5		= $row['IF_cutScore5'];
				$IF_mediaFile		= $row['IF_mediaFile'];
				$IF_mediaEvent		= $row['IF_mediaEvent'];
				$IF_mediaPcW		= $row['IF_mediaPcW'];
				$IF_mediaPcH		= $row['IF_mediaPcH'];
				$IF_mediaWapW		= $row['IF_mediaWapW'];
				$IF_mediaWapH		= $row['IF_mediaWapH'];
				$IF_topicList		= $row['IF_topicList'];
				$IF_encContent		= '';
				/*
				$beforeURL	= GetUrl::CurrDir(1);
				$imgUrl		= $beforeURL . InfoImgDir;

				$IF_encContent	= $row['IF_encContent'];
				$IF_encContent	= str_replace(InfoImgAdminDir,$imgUrl,$IF_encContent);
				*/
				$IF_isEnc			= $row['IF_isEnc'];
				$IF_field1			= $row['IF_field1'];
				$IF_field2			= $row['IF_field2'];
				$IF_field3			= $row['IF_field3'];
				if ($mudi2 == 'copy'){
					$IF_theme		= $row['IF_theme'];
					$IF_themeKey	= $row['IF_themeKey'];
					$IF_contentKey	= $row['IF_contentKey'];
					$IF_tabID		= $row['IF_tabID'];
					if ($row['IF_tabID'] > 0){
						$IF_content	= Info::GetTabContent($row['IF_tabID'], $dataID);
					}else{
						$IF_content	= $row['IF_content'];
					}
					$IF_upImgStr	= $row['IF_upImgStr'];
					$IF_img			= $row['IF_img'];
						if (substr($IF_img,0,12) == 'autoImg/info'){ $IF_img = ''; }
					$IF_fileName	= $row['IF_fileName'];
					$IF_file		= $row['IF_file'];
					$IF_fileStr		= $row['IF_fileStr'];
						if (strlen($IF_fileStr) == 0 && strlen($IF_file) > 0){
							$IF_fileStr = $IF_file .'|'. $IF_fileName .'|';
							$IF_fileName = '';
							$IF_file = '';
						}
					$IF_isRenameFile= $row['IF_isRenameFile'];
					$IF_isSitemap	= $infoSysArr['IS_defIsSitemap'];
					$IF_isXiongzhang= $infoSysArr['IS_defIsXiongzhang'];
					// $IF_bdPing		= $infoSysArr['IS_defBdPing'];
					if (AppBase::Jud()){
						$IF_titleAddi	= $row['IF_titleAddi'];
						$IF_isTitle		= $row['IF_isTitle'];
						$IF_isUserFile	= $row['IF_isUserFile'];
					}else{
						$IF_titleAddi	= '';
						$IF_isTitle		= 0;
						$IF_isUserFile	= 0;
					}
				}else{
					$IF_theme		= '';
					$IF_isTitle		= 0;
					$IF_titleAddi	= '';
					$IF_themeKey	= '';
					$IF_contentKey	= '';
					$IF_tabID		= $infoSysArr['IS_tabID'];
					$IF_content		= '';
					$IF_upImgStr	= '';
					$IF_img			= '';
					$IF_fileName	= '';
					$IF_file		= '';
					$IF_fileStr		= '';
					$IF_isRenameFile= 0;
					$IF_isUserFile	= $infoSysArr['IS_defIsUserFile'];
					if (AppMapBaidu::Jud()){
						$IF_isSitemap	= $row['IF_isSitemap'];
						$IF_isXiongzhang= $infoSysArr['IS_defIsXiongzhang'];
						// $IF_bdPing		= $infoSysArr['IS_defBdPing'];
					}else{
						$IF_isSitemap	= 0;
						$IF_isXiongzhang= 0;
						// $IF_bdPing		= 0;
					}
				}
			}
			$IF_datetimeDir	= '';
			$dataID = 0;
		}else{
			$IF_ID			= 0;
			$IF_time		= '';
			$IF_isOri		= strpos($infoSysArr['IS_addition'],'|ori|') !== false ? 1 : 0;
			$IF_topicList	= $infoSysArr['IS_defTopicList'];
			$IF_typeStr		= '';
			$IF_type1ID		= 0;
			$IF_source		= '';
			$IF_writer		= '';
			$IF_theme		= '';
			$IF_themeStyle	= '';
			$IF_URL			= '';
			$IF_isEncUrl	= 0;
			$IF_isTitle		= 0;
			$IF_titleAddi	= '';
			$IF_template	= $infoSysArr['IS_defTemplate'];
			$IF_templateWap	= $infoSysArr['IS_defTemplateWap'];
			$IF_themeKey	= '';
			$IF_contentKey	= '';
			$IF_tabID		= $infoSysArr['IS_tabID'];
			$IF_content		= '';
			$IF_upImgStr	= '';
			$IF_pageNum		= 0;
			$IF_mediaFile	= '';
			$IF_mediaEvent	= '|autoPlay|mediaImg|';
			$IF_mediaPcW	= '';
			$IF_mediaPcH	= '';
			$IF_mediaWapW	= '';
			$IF_mediaWapH	= '';
			$IF_isAudit		= $infoSysArr['IS_defIsAudit'];
			$IF_isNew		= $infoSysArr['IS_defIsNew'];
			$IF_isHomeThumb	= $infoSysArr['IS_defIsHomeThumb'];
			$IF_isThumb		= $infoSysArr['IS_defIsThumb'];
			$IF_isImg		= $infoSysArr['IS_defIsImg'];
			$IF_isFlash		= $infoSysArr['IS_defIsFlash'];
			$IF_isMarquee	= $infoSysArr['IS_defIsMarquee'];
			$IF_isRecom		= $infoSysArr['IS_defIsRecom'];
			$IF_isTop		= $infoSysArr['IS_defIsTop'];
			$IF_addition	= $infoSysArr['IS_addition'];
			$IF_img			= '';
			$IF_fileName	= '';
			$IF_file		= '';
			$IF_fileStr		= '';
			$IF_isRenameFile= 0;
			$IF_isUserFile	= $infoSysArr['IS_defIsUserFile'];
			$IF_voteMode	= $infoSysArr['IS_defVoteMode'];
			$IF_voteStr		= $infoSysArr['IS_defVoteStr'];
			$IF_isMarkNews	= $infoSysArr['IS_defMarkNews'];
			$IF_isReply		= $infoSysArr['IS_defIsReply'];
			$IF_topAddiID	= $infoSysArr['IS_defTopAddiID'];
			$IF_addiID		= $infoSysArr['IS_defAddiID'];
			$IF_readNum		= OT::RndNumTo($infoSysArr['IS_defReadNum1'],$infoSysArr['IS_defReadNum2']);
			$IF_state		= 1;
			$IF_wapState	= 1;
			$IF_userID		= 0;
			$IF_username	= '';
			$IF_scoreUserList = '';
			$IF_payUserMul	= 0;
			$IF_isCheckUser	= $infoSysArr['IS_defIsCheckUser'];
			$IF_freeGroupList = $infoSysArr['IS_defFreeGroupList'];
			$IF_userGroupList = $infoSysArr['IS_defUserGroupList'];
			$IF_userLevel	= 0;
			$IF_score1		= $infoSysArr['IS_defScore1'];
			$IF_score2		= $infoSysArr['IS_defScore2'];
			$IF_score3		= $infoSysArr['IS_defScore3'];
			$IF_cutScore1	= $infoSysArr['IS_defCutScore1'];
			$IF_cutScore2	= $infoSysArr['IS_defCutScore2'];
			$IF_cutScore3	= $infoSysArr['IS_defCutScore3'];
			$IF_isEnc		= $infoSysArr['IS_defIsEnc'];
			$IF_encContent	= '';
			$IF_infoTypeDir	= '';
			$IF_datetimeDir	= '';
			$IF_adminID		= 0;
			$IF_isSitemap	= $infoSysArr['IS_defIsSitemap'];
			$IF_isXiongzhang= $infoSysArr['IS_defIsXiongzhang'];
			// $IF_bdPing		= $infoSysArr['IS_defBdPing'];
			$IF_cutQuickMoney	= $infoSysArr['IS_defCutQuickMoney'];
			$IF_imgNum			= 0;
			$IF_imgHttpNum		= 0;
			$IF_imgOssNum		= 0;
			$IF_imgLocalNum		= 0;
			$IF_fileNum			= 0;
			$IF_fileHttpNum		= 0;
			$IF_fileOssNum		= 0;
			$IF_fileLocalNum	= 0;
			$IF_videoID			= 0;
			$IF_score4			= $infoSysArr['IS_defScore4'];
			$IF_score5			= $infoSysArr['IS_defScore5'];
			$IF_cutScore4		= $infoSysArr['IS_defCutScore4'];
			$IF_cutScore5		= $infoSysArr['IS_defCutScore5'];
			$IF_field1			= '';
			$IF_field2			= '';
			$IF_field3			= '';
		}
		$IF_revTime		= '';
		$IF_resBaidu	= 0;
		$IF_res360		= 0;
		$IF_resSogou	= 0;
		$IF_resShenma	= 0;
		$IF_resToutiao	= 0;
		$IF_resBing		= 0;
		$IF_auditNote	= '';
		$IF_pwdAnswer	= '';
		$IF_pwdImg		= '';
		$IF_pwdNote		= '';
		$IF_themeKeyIdStr	= '';
		$IF_prevNewsId		= '';
		$IF_nextNewsId		= '';
		$IF_markNewsTime	= '';
		$IF_prevNextTime	= '';

		$itemStr = '';

		$mudiCN = '新增';
		$submitCN = '新 增';
	}

	if (strlen(''. $IF_username) == 0 && $IF_userID > 0){
		$IF_username = $DB->GetOne('select UE_username from '. OT_dbPref .'users where UE_ID='. $IF_userID);
	}

	$isSaveContImg = strpos($infoSysArr['IS_addition'],'|isSaveContImg|')!==false ? 1 : 0;
	if (empty($IF_time)){ $IF_time=TimeDate::Get(); }else{ $IF_time=TimeDate::Get('datetime',$IF_time); }

	$voteItemArr=array(0,0,0,0,0,0,0,0);
	$voteArr = explode(',',$IF_voteStr);
	for ($i=0; $i<count($voteArr); $i++){
		$voteItemArr[$i] = intval($voteArr[$i]);
	}

	$themeStyle_color	= Str::GetMark($IF_themeStyle,'color:',';');
	$themeStyle_b		= Str::GetMark($IF_themeStyle,'font-weight:',';');

	$moreStr = '';

	$autoImgStr = AppAutoImg::Show('<input type="button" onclick=\'AjaxGetDeal("info_deal.php?mudi=autoImg&id='. $dataID .'&title="+ encodeURIComponent($id("theme").value) +"&typeStr="+ encodeURIComponent($id("typeStr").value))\' value="自动配图" />');
	if ($mudi=='add'){
		$autoImgStr .= '&ensp;&ensp;<label style="color:blue;"><input type="checkbox" id="isAutoImg" name="isAutoImg" value="1" '. Is::InstrChecked($IF_addition,'|autoImg|') .' />如为空，自动配图</label>&ensp;&ensp;';
	}

	echo(
	AdmArea::TopBackBtn('info.php?mudi=manage&dataType=news&dataTypeCN=%E6%96%87%E7%AB%A0', '返回 文章管理') .'

	<form id="dealForm" name="dealForm" method="post" action="info_deal.php?mudi='. $mudi .'&nohrefStr=close" onsubmit="return CheckForm()">
	<input type="hidden" id="dataID" name="dataID" value="'. $dataID .'" />
	<input type="hidden" id="dataType" name="dataType" value="'. $dataType .'" />
	<input type="hidden" id="dataTypeCN" name="dataTypeCN" value="'. $dataTypeCN .'" />
	<input type="hidden" id="dataMode" name="dataMode" value="'. $dataMode .'" />
	<input type="hidden" id="dataModeStr" name="dataModeStr" value="'. $dataModeStr .'" />
	<input type="hidden" id="beforeURL" name="beforeURL" value="'. $beforeURL .'" />
	'. Area::BackUrlInput($backURL) .'
	');

	$moreArea = $infoSysArr['IS_moreArea'] .'';
	echo('
	<div class="tabMenu">
	<ul>
		<li rel="tabInfo" class="selected">'. $mudiCN . $dataTypeCN .'</li>
		<li rel="tabFunc" '. (strlen($moreArea) < 3 ? 'style="display:none;"' : '') .'>更多选项</li>
	</ul>
	</div>

	<div class="tabMenuArea">
		<table id="tabInfo" cellpadding="0" cellspacing="0" summary="" class="padd5td">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		');
		if ($mudi == 'rev'){
			if ($IF_adminID > 0){
				$adminName = $DB->GetOne('select MB_realname from '. OT_dbPref .'member where MB_ID='. $IF_adminID);
				if (empty($adminName)){ $adminName = '[可能已不存在]'; }
				echo('
				<tr>
					<td align="right" style="color:red;">文章发布者：</td>
					<td align="left">'. $adminName .'</td>
				</tr>
				');
			}
			echo('
			<tr>
				<td align="right">修改时间：</td>
				<td align="left">'. $IF_revTime .'</td>
			</tr>
			');
		}

		echo('
		<tr>
			<td align="right">'. Skin::RedSign() .'发布时间：</td>
			<td align="left">
				<input type="text" id="time" name="time" size="22" style="width:170px;" value="'. $IF_time .'" onfocus=\'WdatePicker({dateFmt:"yyyy-MM-dd HH:mm:ss"})\' class="Wdate" />
				');
				if ($systemArr['SYS_htmlDatetimeDir'] > 0){
					echo('&ensp;<label><input type="checkbox" name="isChangeDatetimeDir" value="1" />更新时间静态目录名('. $IF_datetimeDir .')</label>');
				}
			echo('
			</td>
		</tr>
		<tr>
			<td align="right">'. Skin::RedSign() .'文章标题：</td>
			<td align="left">
				<input type="text" id="theme" name="theme" size="50" style="width:380px;'. $IF_themeStyle .'" value="'. Str::MoreReplace($IF_theme,'input') .'" />&ensp;
				'. AppBase::InfoThemeB($themeStyle_b,$themeStyle_color) .'
			</td>
		</tr>
		');
		$currStr = AppBase::InfoTrBox1($IF_titleAddi, $IF_isTitle);
		InfoItem($moreArea,'titleAddi',$moreStr,$currStr);

		$currStr = '
			<tr class="infoBox">
				<td align="right">来源：</td>
				<td align="left">
					<input type="text" id="source" name="source" size="50" style="width:380px;" value="'. Str::MoreReplace($IF_source,'input') .'" />
					&ensp;&lt;=&ensp;
					<select id="sourceItem" name="sourceItem" onchange=\'ToSource("")\'>
					'. Info::TypeOptionList('source', '在【文章来源管理】里设置候选项') .'
					</select>
				</td>
			</tr>
			';
		InfoItem($moreArea,'source',$moreStr,$currStr);

		$currStr = '
			<tr class="infoBox">
				<td align="right">作者：</td>
				<td align="left">
					<input type="text" id="writer" name="writer" size="50" style="width:380px;" value="'. Str::MoreReplace($IF_writer,'input') .'" />
					&ensp;&lt;=&ensp;
					<select id="writerItem" name="writerItem" onchange=\'ToWriter("")\'>
					'. Info::TypeOptionList('writer', '在【文章作者管理】里设置候选项', array('realname'=>$MB->mRealname)) .'
					</select>
				</td>
			</tr>
			';
		InfoItem($moreArea,'writer',$moreStr,$currStr);

		$currStr = '
			<tr>
				<td align="right">外部链接：</td>
				<td align="left">
					<input type="text" id="webURL" name="webURL" size="50" style="width:380px;" value="'. $IF_URL .'" onkeyup="CheckWebUrl()" />
					'. AppTaobaoke::InfoEncUrl($IF_isEncUrl) .'
					&ensp;&ensp;'. $skin->TishiBox('非外部链接请留空。') .'
				</td>
			</tr>
			';
		InfoItem($moreArea,'webURL',$moreStr,$currStr);

		$currStr = '
			<tr '. (strlen(''. $infoSysArr['IS_field1Name']) == 0 ? 'class="display"' : '') .'>
				<td align="right">'. $infoSysArr['IS_field1Name'] .'：</td>
				<td align="left">
					<input type="text" id="field1" name="field1" size="50" style="width:380px;" value="'. $IF_field1 .'" />
				</td>
			</tr>
			<tr '. (strlen(''. $infoSysArr['IS_field2Name']) == 0 ? 'class="display"' : '') .'>
				<td align="right">'. $infoSysArr['IS_field2Name'] .'：</td>
				<td align="left">
					<input type="text" id="field2" name="field2" size="50" style="width:380px;" value="'. $IF_field2 .'" />
				</td>
			</tr>
			<tr '. (strlen(''. $infoSysArr['IS_field3Name']) == 0 ? 'class="display"' : '') .'>
				<td align="right">'. $infoSysArr['IS_field3Name'] .'：</td>
				<td align="left">
					<input type="text" id="field3" name="field3" size="50" style="width:380px;" value="'. $IF_field3 .'" />
				</td>
			</tr>
			';
		InfoItem($moreArea,'fieldName',$moreStr,$currStr);

		echo('
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">会员用户名：</td>
			<td align="left">
				<input type="text" id="username" name="username" size="25" style="width:282px;" value="'. $IF_username .'" onblur="CheckUserInfo(this.value,\'&proType=info\')" />&ensp;
				<input type="button" value="选择用户" onclick="OpenSelUserBox(\'username\',\'username\',\'info\')" /><!-- 文本框ID，调用字段名，表名 -->
				<!-- <input type="button" value="创建临时用户" onclick="OpenCreateUserBox(\'username\',\'username\',\'info\')" /> -->
				<span id="usernameRes" style="color:red;"></span>
				<span id="selUserBox" style="display:none;"></span>
				<span id="createUserBox" style="display:none;"></span>
				<script language="javascript" type="text/javascript">CheckUserInfo($id("username").value,"");</script>
				<span class="font2_2">（可选）</span>
			</td>
		</tr>
		<tr>
			<td align="right">'. Skin::RedSign() .'栏目：</td>
			<td align="left">
				<select id="typeStr" name="typeStr">
				<option value=""></option>
				');
				$aarnStr = AppAdminRightNews::InfoItem1($MB->mRightStr, $IF_typeStr);
				if (strlen(''. $aarnStr) > 5){
					echo($aarnStr);
				}else{
					echo('
					<option value="announ" '. Is::Selected($IF_typeStr,'announ') .'>0、'. $systemArr['SYS_announName'] .'</option>
					');
					$typeNum = 0;
					$typeexe=$DB->query('select IT_ID,IT_theme,IT_mode from '. OT_dbPref ."infoType where IT_state=1 and IT_level=1 and IT_isAdminUser=1 and IT_mode in ('item','url','web') order by IT_rank ASC");
					if ($row = $typeexe->fetch()){
						do{
							$typeNum ++;
							$type2exe=$DB->query('select IT_ID,IT_theme,IT_mode from '. OT_dbPref ."infoType where IT_state=1 and IT_level=2 and IT_isAdminUser=1 and IT_fatID=". $row['IT_ID'] ." and IT_mode='item' order by IT_rank ASC");
							// if (! $row2 = $type2exe->fetch()){
								echo('<option value=",'. $row['IT_ID'] .'," '. Is::InstrSelected($IF_typeStr,','. $row['IT_ID'] .',') .'>'. $typeNum .'、'. $row['IT_theme'] .'&ensp;&ensp;[id:'. $row['IT_ID'] .']'. InfoType::ModeCN($row['IT_mode']) .'</option>');
							// }else{
							//	echo('<optgroup label="'. $typeNum .'、'. $row['IT_theme'] .'" style="font-weight:normal;"></optgroup>');
								while ($row2 = $type2exe->fetch()){
									echo('<option value=",'. $row['IT_ID'] .','. $row2['IT_ID'] .'," '. Is::InstrSelected($IF_typeStr,','. $row2['IT_ID'] .',') .'>&ensp;&ensp;&ensp;┣&ensp;'. $row2['IT_theme'] .'&ensp;&ensp;[id:'. $row2['IT_ID'] .']</option>');
								}
							// }
						}while ($row = $typeexe->fetch());
					}else{
						echo('<option value="">无栏目【常规设置→栏目管理】（是否【后台投稿】未开启，【状态】隐藏）</option>');
					}
				}
				echo('
				</select>
				'. Area::SelectOptionFind('typeStr',100) .'
				&ensp;
				');
				if ($systemArr['SYS_htmlInfoTypeDir']==1 && $mudiCN=='修改'){
					echo('
					<label><input type="checkbox" name="isChangeInfoTypeDir" value="1" />更新栏目静态目录名('. $IF_infoTypeDir .')</label>
					');
				}
				echo('
				&ensp;&ensp;'. $skin->TishiBox('如果有二级栏目,一级栏目不能选择') .'
			</td>
		</tr>
		');

		$currStr = AppBase::InfoTrBox2($IF_template) . AppWap::InfoTrBox2($IF_templateWap);
		InfoItem($moreArea,'template',$moreStr,$currStr);

		echo('
		<tr class="infoBox">
			<td align="right">内容库：</td>
			<td align="left">
				<input type="hidden" id="oldTabID" name="oldTabID" value="'. $IF_tabID .'" />
				<select id="tabID" name="tabID">
				<option value="0">自身表</option>
				');
				$maxNewsNum = 0;
				$tabArr = $DB->GetTabArr('xiao');
				for ($i=1; $i<=$infoSysArr['IS_tabNum']; $i++){
					if (in_array(strtolower(OT_dbPref) .'infocontent'. $i, $tabArr)){
						$maxNewsNum = $DB->GetOne('select count(IC_ID) from '. OT_dbPref .'infoContent'. $i);
						echo('<option value="'. $i .'" '. Is::Selected($IF_tabID,$i) .'>内容表'. $i .'（'. $maxNewsNum .'篇）</option>');
					}
				}
				echo('
				</select>
				&ensp;'. $skin->TishiBox('把文章内容存放在单独内容表，以减少文章总表容量大小压力。') .'
			</td>
		</tr>
		<tr class="infoBox">
			<td align="right" valign="top" style="padding-top:6px;">'. Skin::RedSign() .'内容：</td>
			<td align="left">
				<textarea id="content" name="content" cols="40" rows="4" style="width:650px;height:350px;" class="text" onclick=\'LoadEditor("content",0,0,"");\' title="点击开启编辑器模式">'. Str::MoreReplace($IF_content,'textarea') .'</textarea>
				<script language="javascript" type="text/javascript">LoadEditor("content",0,0,"");</script>
				<div style="padding:2px 0;">
				<input type="hidden" id="imgDir" name="imgDir" value="'. InfoImgDir .'" />
				<input type="hidden" id="imgAdminDir" name="imgAdminDir" value="'. InfoImgAdminDir .'" />
				<input type="hidden" id="upImgStr" name="upImgStr" value="'. $IF_upImgStr .'" />
				<input type="button" value="上传图片载入编辑器" onclick=\'OT_OpenUpImg("editor","content","","")\' />
				&ensp;<input type="button" onclick=\'InsertStrToEditor("content","[OT_page]")\' value="插入【分页符】" />
				&ensp;<input type="button" onclick=\'CopyStrToEditor("content")\' value="插入【一键复制框】" />
				&ensp;<input type="button" onclick=\'SetEditorHtml("content",GetEditorHTML("content").replace(/<a (.*?)>(.*?)<\/a>/gi,"\$2"))\' value="清除超链接" />
				&ensp;<input type="button" onclick=\'alert("含HTML字符数："+ GetEditorHTML("content").length +"\n不含HTML字符数："+ GetEditorText("content").length);\' value="统计字数" />
				'. AppBase::InfoSaveContImg($isSaveContImg) .'
				</div>
			</td>
		</tr>
		<tr class="infoBox">
			<td align="right">自动分页字数：</td>
			<td align="left">
				<input type="text" id="pageNum" name="pageNum" size="50" style="width:50px;" value="'. $IF_pageNum .'" />
				&ensp;&ensp;'. $skin->TishiBox('填写每页要显示的字数（而不是填分多少页）；如果在内容中加入了手动分页符或不想分页,请填写0或留空') .'
			</td>
		</tr>
		<tr class="infoBox">
			<td align="right">标签/关键词：</td>
			<td align="left">
				<input type="text" id="themeKey" name="themeKey" size="50" style="width:380px;" value="'. $IF_themeKey .'" />
				&ensp;&ensp;<a href="javascript:void(0);" onclick=\'GetKeyWord("fc");return false;\' class="font1_2" style="text-decoration:underline;">分词获取</a>
				<!-- &ensp;&ensp;<a href="javascript:void(0);" onclick=\'GetKeyWord("dz");return false;\' class="font1_2" style="text-decoration:underline;">网络获取</a> -->
				&ensp;&ensp;<a href="javascript:void(0);" onclick=\'GetKeyWord("");return false;\' class="font1_2" style="text-decoration:underline;">本地获取</a>
				&ensp;<span id="onloadThemeKey" class="font3_2"></span>
				&ensp;'. $skin->TishiBox('多个关键词用空格、竖杆“|”或逗号“,”隔开；分词获取：分析文章中各种词汇出现的频率，挑选频率最高5个词汇；本地获取：通过本地词库（网站目录/inc/keyWord.txt，可自行添加需要的关键词）分析标题，筛选关键词') .'
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" style="padding-top:6px;">内容摘要：</td>
			<td align="left">
				<textarea id="contentKey" name="contentKey" rows="5" cols="40" style="width:380px; height:80px;">'. $IF_contentKey .'</textarea>
				&ensp;<a href="javascript:void(0);" onclick="ToContentKey();return false;" class="font1_2" style="text-decoration:underline;">自动获取</a>
				&ensp;&ensp;'. $skin->TishiBox('若为空则自动获取') .'
			</td>
		</tr>
		');

		$currStr = AppAudioVideo::InfoTrBox1($IF_videoID);
		$currStr .= AppVideo::InfoTrBox1($IF_mediaFile, $IF_mediaEvent, $IF_addition, $IF_mediaPcW, $IF_mediaPcH, $IF_mediaWapW, $IF_mediaWapH);
		InfoItem($moreArea,'media',$moreStr,$currStr);

		$isAuditStr = $auditNoteStr = '';
		if ($IF_userID > 0){
			$isAuditStr = '<select id="isAudit" name="isAudit" onchange="CheckAudit()">
							<option value="1" '. Is::Selected($IF_isAudit,1) .'>已审核</option>
							<option value="0" '. Is::Selected($IF_isAudit,0) .'>未审核</option>
							<option value="2" '. Is::Selected($IF_isAudit,2) .'>被拒绝</option>
						</select>&ensp;&ensp;';
			$auditNoteStr = '
				<tr id="auditBox" style="display:none;">
					<td align="right" valign="top" style="padding-top:6px;">未审核通过原因：</td>
					<td align="left">
						<input type="text" id="auditNote" name="auditNote" size="50" style="width:300px;" value="'. $IF_auditNote .'" />
						<span style="color:red">（该选项仅对前台会员投稿显示说明 未审核 原因）</span>
					</td>
				</tr>
				';
		}else{
			$isAuditStr = '<label title="已审核的文章才会在前台显示"><input type="checkbox" id="isAudit" name="isAudit" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isAudit,1) .' />已审核</label>&ensp;&ensp;';
		}
		echo('
		<tr>
			<td align="right">文章属性：</td>
			<td align="left">
				'. $isAuditStr .'
				<label title="出现在前台最新消息处"><input type="checkbox" id="isNew" name="isNew" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isNew,1) .' />最新消息</label>&ensp;&ensp;
				<label title="首页栏目显示图片文章需要此属性，同时所属栏目【在首页显示图片文章】需要开启"><input type="checkbox" id="isHomeThumb" name="isHomeThumb" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isHomeThumb,1) .' />首页缩略图</label>&ensp;&ensp;
				<label title="列表页中显示"><input type="checkbox" id="isThumb" name="isThumb" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isThumb,1) .' />缩略图</label>&ensp;&ensp;
				<label title="首页左上角幻灯片"><input type="checkbox" id="isFlash" name="isFlash" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isFlash,1) .' />幻灯片</label>&ensp;&ensp;
				<label title="首页中部滚动图片"><input type="checkbox" id="isImg" name="isImg" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isImg,1) .' />滚动图片</label>&ensp;&ensp;
				<label title="页头滚动信息"><input type="checkbox" id="isMarquee" name="isMarquee" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isMarquee,1) .' />滚动信息</label>&ensp;&ensp;
				<label title="出现在精彩推荐/本类推荐里"><input type="checkbox" id="isRecom" name="isRecom" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isRecom,1) .' />推荐</label>&ensp;&ensp;
				<label title="出现在最新消息第一条及列表页前几条"><input type="checkbox" id="isTop" name="isTop" onclick="CheckAddition()" value="1" '. Is::Checked($IF_isTop,1) .' />置顶</label>&ensp;&ensp;
			</td>
		</tr>
		'. $auditNoteStr .'
		<tr id="imgBox" style="display:none;">
			<td align="right" valign="top" style="padding-top:6px;">缩略图：</td>
			<td align="left">
				<input type="text" id="img" name="img" size="50" style="width:300px;" value="'. $IF_img .'" onkeyup="CheckSaveImg()" />
				'. AppBase::InfoSaveImg(0) .'
				<span style="position:relative;"><span style="position:absolute; left:-200px; top:22px;"><img id="imgView" src="" width="200" style="display:none;" onerror=\'this.src="images/noPic2.gif";\' /></span></span>
				<input type="button" onclick=\'OT_OpenUpImg("input","img","info","&useThumb=1&selThumb=1")\' value="上传图片" />
				'. $autoImgStr .'
				&ensp;<a href="javascript:void(0);" onclick="GetEditorImg();return false;" class="font1_2" style="text-decoration:underline;">从编辑器中获取</a>
				&ensp;&ensp;'. $skin->TishiBox('可使用远程图片http://；如果作用于flash幻灯片，缩略图图片格式必须是JPG，不然显示不出来。') .'
				<div id="editorImgBox"></div>
			</td>
		</tr>
		');

		// if (strlen($IF_fileStr) > 0){
		$fileArr = explode('<arr>', $IF_fileStr .'<arr><arr><arr><arr><arr><arr><arr><arr>');	// 至少9个数组元素
		$fileNum = count(array_filter($fileArr));
		$fileOption = $fileList = '';
		for ($i=1; $i<=9; $i++){
			$itemArr = explode('|', $fileArr[$i-1] .'||||');	// 至少5个数组元素 0文件地址|1文件名称|2适配码|3提取码|4预留项
			if (strlen($itemArr[2]) < 3){ $itemArr[2] = OT::RndChar(5); }
			$fileOption .= '<option value="'. $i .'" '. Is::Selected($fileNum,$i) .'>'. $i .'</option>';
			$fileList .= '
				<div id="fileBox'. $i .'" style="padding-top:6px;line-height:2;display:none;">
					<input type="hidden" id="fileRnd'. $i .'" name="fileRnd'. $i .'" value="'. $itemArr[2] .'" />
					文件'. $i .'：<input type="text" id="file'. $i .'" name="file'. $i .'" size="50" style="width:650px;" value="'. $itemArr[0] .'" />
					<input type="button" onclick=\'OT_OpenUpFile("input","file'. $i .'","download","")\' value="上传附件" />
					<div style="padding-top:2px;">
						<span style="color:#707070">名称'. $i .'：</span><input type="text" id="fileName'. $i .'" name="fileName'. $i .'" size="50" style="width:300px;" value="'. $itemArr[1] .'" />
						&ensp;&ensp;<span title="适用于百度网盘或其他云盘地址需要输入提取码才能查看"><span style="color:#707070">提取码：</span><input type="text" id="filePwd'. $i .'" name="filePwd'. $i .'" size="50" style="width:60px;" value="'. $itemArr[3] .'" /><span style="color:red">（可选）</span></span>
						&ensp;&ensp;<span title="下载地址附带适配码检查，防止早期通过文章ID就能下载附件BUG">适配码：<span id="fileRnd'. $i .'Txt">'. $itemArr[2] .'</span></span>&ensp;<span style="color:blue;cursor:pointer;" onclick="$id(\'fileRnd'. $i .'\').value=RndNum(5);$id(\'fileRnd'. $i .'Txt\').innerHTML=$id(\'fileRnd'. $i .'\').value;">[重置]</span>
					</div>
				</div>
				';
		}
		$currStr = '
			<tr class="infoBox">
				<td align="right" valign="top" style="padding-top:6px;">附件：</td>
				<td align="left">
					<div>
						数量：<select id="fileNum" name="fileNum" onchange="CheckFile();">
							<option value="0">0</option>
							'. $fileOption .'
						</select>
						<!-- &ensp;&ensp;<label><input type="checkbox" id="isRenameFile" name="isRenameFile" value="1" '. Is::Checked($IF_isRenameFile,1) .' />下载文件重命名</label>'. $skin->TishiBox('部分浏览器会异常，不建议；仅对本地附件有效') .' -->
						'. AppBase::InfoUserFile($IF_isUserFile) .'
						&ensp;&ensp;'. $skin->TishiBox('附件文件：可上传本地文件或者使用远程文件地址http://；附件名称：可选项') .'
					</div>
					'. $fileList .'
				</td>
			</tr>
			';
		/* }else{
			$currStr = '
				<tr class="infoBox">
					<td align="right">附件文件：</td>
					<td align="left">
						<input type="text" id="file" name="file" size="50" style="width:380px;" value="'. $IF_file .'" />
						<input type="button" onclick=\'OT_OpenUpFile("input","file","download","")\' value="上传附件" />
						&ensp;&ensp;'. $skin->TishiBox('可上传本地文件或者使用远程文件地址http://') .'
					</td>
				</tr>
				<tr class="infoBox">
					<td align="right">附件名称：</td>
					<td align="left">
						<input type="text" id="fileName" name="fileName" size="50" style="width:180px;" value="'. $IF_fileName .'" />'. $skin->TishiBox('可选') .'
						<!-- &ensp;&ensp;<label><input type="checkbox" id="isRenameFile" name="isRenameFile" value="1" '. Is::Checked($IF_isRenameFile,1) .' />下载文件重命名</label>'. $skin->TishiBox('部分浏览器会异常，不建议；仅对本地附件有效') .' -->
						'. AppBase::InfoUserFile($IF_isUserFile) .'
					</td>
				</tr>
				';
		} */
		InfoItem($moreArea,'file',$moreStr,$currStr);

		$topAddiStr = $addiStr = '';
		$addiexe=$DB->query('select IW_ID,IW_theme,IW_state from '. OT_dbPref ."infoWeb where IW_type='news' order by IW_state DESC,IW_rank ASC");
		while ($row = $addiexe->fetch()){
			if ($row['IW_state']==1){ $stateStr=''; }else{ $stateStr=' (隐藏)'; }
			$topAddiStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($IF_topAddiID,$row['IW_ID']) .'>'. $row['IW_theme'] . $stateStr .'</option>';
			$addiStr .= '<option value="'. $row['IW_ID'] .'" '. Is::Selected($IF_addiID,$row['IW_ID']) .'>'. $row['IW_theme'] . $stateStr .'</option>';
		}
		unset($addiexe);

		$currStr = '
			<tr class="infoBox">
				<td align="right">正文头附加内容：</td>
				<td align="left">
					<select id="topAddiID" name="topAddiID">
					<option value="0">无</option>
					'. $topAddiStr .'
					</select>&ensp;
					&ensp;&ensp;'. $skin->TishiBox('放在内容头部，如通知、申明；（文章管理-附加内容管理）') .'
				</td>
			</tr>
			';
		InfoItem($moreArea,'topAddiID',$moreStr,$currStr);

		$currStr = '
			<tr class="infoBox">
				<td align="right">正文尾附加内容：</td>
				<td align="left">
					<select id="addiID" name="addiID">
					<option value="0">无</option>
					'. $addiStr .'
					</select>&ensp;
					&ensp;&ensp;'. $skin->TishiBox('放在内容最下面，如转载申明；（文章管理-附加内容管理）') .'
				</td>
			</tr>
			';
		InfoItem($moreArea,'addiID',$moreStr,$currStr);

		if ($infoSysArr['IS_isNewsVote']>0){
			$currStr = '
				<tr class="infoBox">
					<td align="right">投票方式：</td>
					<td align="left">
						<label><input type="radio" id="voteMode0" name="voteMode" onclick="CheckVote()" value="0" '. Is::Checked($IF_voteMode,0) .' />关闭</label>&ensp;&ensp;
						<label><input type="radio" id="voteMode1" name="voteMode" onclick="CheckVote()" value="1" '. Is::Checked($IF_voteMode,1) .' />心情</label>&ensp;&ensp;
						<label><input type="radio" id="voteMode2" name="voteMode" onclick="CheckVote()" value="2" '. Is::Checked($IF_voteMode,2) .' />顶踩</label>&ensp;&ensp;
						<label><input type="radio" id="voteMode11" name="voteMode" onclick="CheckVote()" value="11" '. Is::Checked($IF_voteMode,11) .' />百度喜欢按钮</label>&ensp;&ensp;
					</td>
				</tr>
				<tr class="infoBox" id="vote1Box" style="display:none;">
					<td align="right">心情投票：</td>
					<td align="left">
						支持<input type="text" id="voteItem1" name="voteItem1" size="50" style="width:50px;" value="'. $voteItemArr[0] .'" />&ensp;&ensp;
						感动<input type="text" id="voteItem2" name="voteItem2" size="50" style="width:50px;" value="'. $voteItemArr[1] .'" />&ensp;&ensp;
						惊讶<input type="text" id="voteItem3" name="voteItem3" size="50" style="width:50px;" value="'. $voteItemArr[2] .'" />&ensp;&ensp;
						同情<input type="text" id="voteItem4" name="voteItem4" size="50" style="width:50px;" value="'. $voteItemArr[3] .'" />&ensp;&ensp;
						流汗<input type="text" id="voteItem5" name="voteItem5" size="50" style="width:50px;" value="'. $voteItemArr[4] .'" />&ensp;&ensp;
						鄙视<input type="text" id="voteItem6" name="voteItem6" size="50" style="width:50px;" value="'. $voteItemArr[5] .'" />&ensp;&ensp;
						愤怒<input type="text" id="voteItem7" name="voteItem7" size="50" style="width:50px;" value="'. $voteItemArr[6] .'" />&ensp;&ensp;
						难过<input type="text" id="voteItem8" name="voteItem8" size="50" style="width:50px;" value="'. $voteItemArr[7] .'" />&ensp;&ensp;
					</td>
				</tr>
				<tr class="infoBox" id="vote2Box" style="display:none;">
					<td align="right">顶踩投票：</td>
					<td align="left">
						顶一下<input type="text" id="voteItem11" name="voteItem11" size="50" style="width:50px;" value="'. $voteItemArr[0] .'" />&ensp;&ensp;
						踩一下<input type="text" id="voteItem12" name="voteItem12" size="50" style="width:50px;" value="'. $voteItemArr[1] .'" />&ensp;&ensp;
					</td>
				</tr>
				';
			InfoItem($moreArea,'voteMode',$moreStr,$currStr);
		}

		$currStr = '
			<tr class="infoBox">
				<td align="right">相关文章：</td>
				<td align="left">
					<label><input type="radio" name="isMarkNews" value="1" '. Is::Checked($IF_isMarkNews,1) .' />开启</label>&ensp;&ensp;
					<label><input type="radio" name="isMarkNews" value="0" '. Is::Checked($IF_isMarkNews,0) .' />关闭</label>&ensp;&ensp;
				</td>
			</tr>
			';
		InfoItem($moreArea,'isMarkNews',$moreStr,$currStr);

		if ($infoSysArr['IS_isNewsReply']>0){
			$currStr = '
				<tr class="infoBox">
					<td align="right">评论区：</td>
					<td align="left">
						<label><input type="radio" name="isReply" value="1" '. Is::Checked($IF_isReply,1) .' />开启</label>&ensp;&ensp;
						<label><input type="radio" name="isReply" value="10" '. Is::Checked($IF_isReply,10) .' />仅限会员</label>&ensp;&ensp;
						<label><input type="radio" name="isReply" value="0" '. Is::Checked($IF_isReply,0) .' />关闭</label>&ensp;&ensp;
					</td>
				</tr>
				';
			InfoItem($moreArea,'isReply',$moreStr,$currStr);
		}

		$currStr = AppTopic::InfoTrBox1($IF_topicList);
		InfoItem($moreArea,'topicID',$moreStr,$currStr);

		$currStr = AppMapBaidu::InfoTrBox1($IF_isSitemap, $IF_isXiongzhang);
		InfoItem($moreArea,'mapBaidu',$moreStr,$currStr);

		$currStr = AppResBaidu::InfoTrBox1($IF_resBaidu);
		InfoItem($moreArea,'resBaidu',$moreStr,$currStr);

		$currStr = AppRes360::InfoTrBox1($IF_res360);
		InfoItem($moreArea,'res360',$moreStr,$currStr);

		$currStr = AppResSogou::InfoTrBox1($IF_resSogou);
		InfoItem($moreArea,'resSogou',$moreStr,$currStr);

		$currStr = AppResShenma::InfoTrBox1($IF_resShenma);
		InfoItem($moreArea,'resShenma',$moreStr,$currStr);

		$currStr = AppResToutiao::InfoTrBox1($IF_resToutiao);
		InfoItem($moreArea,'resToutiao',$moreStr,$currStr);

		$currStr = AppResBing::InfoTrBox1($IF_resBing);
		InfoItem($moreArea,'resBing',$moreStr,$currStr);

		$currStr = '
			<tr>
				<td align="right">阅读量：</td>
				<td align="left"><input type="text" id="readNum" name="readNum" size="50" style="width:80px;" value="'. $IF_readNum .'" /></td>
			</tr>
			';
		InfoItem($moreArea,'readNum',$moreStr,$currStr);

		$currStr = '
			<tr>
				<td align="right">电脑版状态：</td>
				<td align="left">
					<label><input type="radio" name="state" value="1" '. Is::Checked($IF_state,1) .' />显示</label>&ensp;&ensp;
					<label><input type="radio" name="state" value="0" '. Is::Checked($IF_state,0) .' />隐藏</label>&ensp;&ensp;
				</td>
			</tr>
			<tr>
				<td align="right">手机版状态：</td>
				<td align="left">
					<label><input type="radio" name="wapState" value="1" '. Is::Checked($IF_wapState,1) .' />显示</label>&ensp;&ensp;
					<label><input type="radio" name="wapState" value="0" '. Is::Checked($IF_wapState,0) .' />隐藏</label>&ensp;&ensp;
				</td>
			</tr>
			';
		InfoItem($moreArea,'state',$moreStr,$currStr);

		$currStr = '
		<tr>
			<td align="right">附加功能：</td>
			<td>
				<!-- <label><input type="checkbox" name="addition[]" value="|ori|" '. Is::InstrChecked($IF_addition,'|ori|') .' />原创</label>&ensp;&ensp; -->
				<label><input type="checkbox" name="isOri" value="1" '. Is::Checked($IF_isOri,1) .' />原创</label>
				'. $skin->TishiBox('原创打钩，会根据百度原创保护 星火计划2.0 在页头增加原创标签') .'
				&ensp;&ensp;
				<label><input type="checkbox" name="addition[]" value="|contentImg|" '. Is::InstrChecked($IF_addition,'|contentImg|') .' />正文显示缩略图</label>&ensp;&ensp;
				<label><input type="checkbox" name="addition[]" value="|noMakeHtml|" '. Is::InstrChecked($IF_addition,'|noMakeHtml|') .' />提交不生成静态页<span style="color:red;">(针对已开启内容页纯静态)</span></label>&ensp;&ensp;
				<label><input type="checkbox" name="addition[]" value="|noInfoType|" '. Is::InstrChecked($IF_addition,'|noInfoType|') .' />栏目[文章设置覆盖]无效</label>&ensp;&ensp;
			</td>
		</tr>
		';
		InfoItem($moreArea,'addition',$moreStr,$currStr);

		if ($userSysArr['US_isScore1'] == 1){ $score1Style = ''; }else{ $score1Style = 'display:none;'; }
		if ($userSysArr['US_isScore2'] == 1){ $score2Style = ''; }else{ $score2Style = 'display:none;'; }
		if ($userSysArr['US_isScore3'] == 1){ $score3Style = ''; }else{ $score3Style = 'display:none;'; }
		if ($userSysArr['US_isScore4'] == 1){ $score4Style = ''; }else{ $score4Style = 'display:none;'; }
		if ($userSysArr['US_isScore5'] == 1){ $score5Style = ''; }else{ $score5Style = 'display:none;'; }

		$freeGroupStr = $limitGroupStr = '';
		$groupexe = $DB->query('select UG_ID,UG_theme from '. OT_dbPref .'userGroup where UG_state=1 order by UG_rank ASC');
		while ($row = $groupexe->fetch()){
			$freeGroupStr .= '<label><input type="checkbox" name="freeGroupList[]" value="['. $row['UG_ID'] .']" '. Is::InstrChecked($IF_freeGroupList,'['. $row['UG_ID'] .']') .'>'. $row['UG_theme'] .'</label>&ensp;&ensp;';
			$limitGroupStr .= '<label><input type="checkbox" name="userGroupList[]" value="['. $row['UG_ID'] .']" '. Is::InstrChecked($IF_userGroupList,'['. $row['UG_ID'] .']') .'>'. $row['UG_theme'] .'</label>&ensp;&ensp;';
		}
		unset($groupexe);

		$userLevelStr = '';
		$levexe=$DB->query('select UL_theme,UL_num,UL_score1,UL_score2,UL_score3,UL_score4,UL_score5 from '. OT_dbPref .'userLevel order by UL_score1 ASC');
		while ($row = $levexe->fetch()){
			$userLevelStr .= '<option value="'. $row['UL_num'] .'|'. $row['UL_score1'] .'|'. $row['UL_score2'] .'|'. $row['UL_score3'] .'|'. $row['UL_score4'] .'|'. $row['UL_score5'] .'">等级：'. $row['UL_num'] .'【'. $row['UL_theme'] .'】</option>';
		
		}
		unset($levexe);

		$payUserMulStr = '';
		// 0采用文章各自设置，1+全局设置，-1不显示全局已阅读人数，-2关闭全局虚假人数
		if ($infoSysArr['IS_payUserMul'] == 0){
			$payUserMulStr = '<div style="color:red;">（已关闭全局设置，如要开启到【文章管理→文章参数设置】-[前台文章内容页设置]-[隐藏内容提示框虚假人数]）</div>';
		
		}elseif ($infoSysArr['IS_payUserMul'] == -1){
			$payUserMulStr = '<div style="color:red;">（全局设置，不显示全局已阅读人数）</div>';
		
		}elseif ($infoSysArr['IS_payUserMul'] == -2){
			$payUserMulStr = '<div style="color:red;">（全局设置，关闭全局虚假人数）</div>';
		
		}elseif ($infoSysArr['IS_payUserMul'] >= 1){
			$payUserMulStr = '<div style="color:red;">（全局设置，阅读量<!-- ['. $IF_readNum .'] --> / '. $infoSysArr['IS_payUserMul'] .'）</div>';
		
		}

		$currStr = '
			<tr class="infoBox">
				<td align="right">限制/付费阅读：</td>
				<td align="left">
					<label><input type="checkbox" id="addition_user" name="addition[]" value="|checkUser|" '. Is::InstrChecked($IF_addition,'|checkUser|') .' onclick="CheckCheckUser()" />仅限会员阅读</label>&ensp;&ensp;
					<label><input type="checkbox" id="addition_reply" name="addition[]" value="|checkReply|" '. Is::InstrChecked($IF_addition,'|checkReply|') .' onclick="CheckCheckUser()" />会员回复可见</label>&ensp;&ensp;
					'. AppMoneyQuick::InfoCheckItem($IF_addition) .'
					'. AppNewsPwd::InfoCheckItem($IF_addition) .'
				</td>
			</tr>
			<tr class="infoBox">
				<td align="right" valign="top" style="padding-top:6px;">限制/付费已阅读人数：</td>
				<td align="left">
					&ensp;<span onclick="ClickShowHidden(\'userListBox\')" title="点击查看付款会员ID集">'. Info::PayUserCount($IF_scoreUserList) .'</span>
					+ 虚假人数（阅读量：'. $IF_readNum .' / <input type="text" id="payUserMul" name="payUserMul" value="'. $IF_payUserMul .'" size="3" style="width:65px;" />，0关闭虚假人数，-1不显示已阅读人数）
					'. $payUserMulStr .'
					<div id="userListBox" style="word-break:break-all;color:red;display:none;">付款会员ID列表：'. $IF_scoreUserList .'</div>
				</td>
			</tr>
			<tbody id="checkUserBox" style="display:none;">
			<tr><td align="left" colspan="2">
				<table align="left" cellpadding="0" cellspacing="0" summary="" class="infoBox padd3">
				<tr>
					<td class="tabLeftWidth"></td>
					<td align="left" colspan="4"><b>【仅限会员阅读】设置区</b></td>
				</tr>
				<tr>
					<td align="right"></td>
					<td align="center" style="width:55px;'. $score1Style .'">'. $userSysArr['US_score1Name'] .'</td>
					<td align="center" style="width:55px;'. $score2Style .'">'. $userSysArr['US_score2Name'] .'</td>
					<td align="center" style="width:55px;'. $score3Style .'">'. $userSysArr['US_score3Name'] .'</td>
					<td align="center" style="width:55px;'. $score4Style .'">'. $userSysArr['US_score4Name'] .'</td>
					<td align="center" style="width:55px;'. $score5Style .'">'. $userSysArr['US_score5Name'] .'</td>
					<td align="center"></td>
				</tr>
				<tr>
					<td align="right">限制阅读积分：</td>
					<td align="center" style="'. $score1Style .'"><input type="text" id="score1" name="score1" value="'. $IF_score1 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score2Style .'"><input type="text" id="score2" name="score2" value="'. $IF_score2 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score3Style .'"><input type="text" id="score3" name="score3" value="'. $IF_score3 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score4Style .'"><input type="text" id="score4" name="score4" value="'. $IF_score4 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score5Style .'"><input type="text" id="score5" name="score5" value="'. $IF_score5 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="left">
						<input type="hidden" id="userLevel" name="userLevel" value="'. $IF_userLevel .'" />
						<select id="userLevelStr" name="userLevelStr" onchange="SetUserLevel();">
							<option value="">阅读等级限制</option>
							'. $userLevelStr .'
						</select>
					</td>
				</tr>
				<tr>
					<td align="right">付费阅读积分：</td>
					<td align="center" style="'. $score1Style .'"><input type="text" id="cutScore1" name="cutScore1" value="'. $IF_cutScore1 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score2Style .'"><input type="text" id="cutScore2" name="cutScore2" value="'. $IF_cutScore2 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score3Style .'"><input type="text" id="cutScore3" name="cutScore3" value="'. $IF_cutScore3 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score4Style .'"><input type="text" id="cutScore4" name="cutScore4" value="'. $IF_cutScore4 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="center" style="'. $score5Style .'"><input type="text" id="cutScore5" name="cutScore5" value="'. $IF_cutScore5 .'" size="3" style="width:65px;" onkeyUp="this.value=FiltInt(this.value)" /></td>
					<td align="left"></td>
				</tr>
				<tr>
					<td align="right" valign="top" style="padding-top:6px;">免费阅读组：</td>
					<td align="left" colspan="4">
						'. $freeGroupStr .'
						<span style="color:red;">(【免费阅读组】优先于【限制/付费阅读组】)</span>
					</td>
				</tr>
				<tr>
					<td align="right" valign="top" style="padding-top:6px;">限制/付费阅读组：</td>
					<td align="left" colspan="4">
						'. $limitGroupStr .'
						<span style="color:red;">(都不选，等于允许所有用户组)</span>
					</td>
				</tr>
				</table>
				
			</td></tr>
			</tbody>
			<tbody id="checkQuickBox" style="display:none;">
			'. AppMoneyQuick::InfoTrBox($IF_cutQuickMoney) .'
			</tbody>
			<tbody id="checkPwdBox" style="display:none;">
			'. AppNewsPwd::InfoTrBox($IF_pwdAnswer, $IF_pwdImg, $IF_pwdNote) .'
			</tbody>
			<tbody id="newsEncBox" style="display:none;">
			'. AppNewsEnc::InfoTrBox1($IF_isEnc, $IF_encContent, $IF_addition) .'
			</tbody>
			';
		InfoItem($moreArea,'isCheckUser',$moreStr,$currStr);

		echo('
		</table>

		<div id="tabFunc" style="display:none;">
		<table cellpadding="0" cellspacing="0" summary="" class="padd5td">
		<tr><td class="tabLeftWidth"></td><td></td></tr>
		'. $moreStr .'
		<tr>
			<td align="right">相关文章ID集：</td>
			<td align="left">'. $IF_themeKeyIdStr .'&ensp;&ensp;<label><input type="checkbox" name="themeKeyIdEmpty" value="1" />清空</label></td>
		</tr>
		<tr>
			<td align="right">相关文章ID保存时间：</td>
			<td align="left">'. $IF_markNewsTime .'</td>
		</tr>
		<tr>
			<td align="right">上下篇文章ID：</td>
			<td align="left">
				上一篇：<input type="text" id="prevNewsId" name="prevNewsId" size="50" style="width:80px;" value="'. $IF_prevNewsId .'" />，
				下一篇：<input type="text" id="nextNewsId" name="nextNewsId" size="50" style="width:80px;" value="'. $IF_nextNewsId .'" />
			</td>
		</tr>
		<tr>
			<td align="right">上下篇ID保存时间：</td>
			<td align="left">'. $IF_prevNextTime .'</td>
		</tr>
		'. $itemStr .'
		');
		if ($mudi == 'rev'){
			echo('
			<tr>
				<td align="right">内容图片数量：</td>
				<td align="left">总数：'. $IF_imgNum .'（远程：'. $IF_imgHttpNum .'，云存储：'. $IF_imgOssNum .'，本地：'. $IF_imgLocalNum .'）</td>
			</tr>
			<tr>
				<td align="right">附件数量：</td>
				<td align="left">总数：'. $IF_fileNum .'（远程：'. $IF_fileHttpNum .'，云存储：'. $IF_fileOssNum .'，本地：'. $IF_fileLocalNum .'）</td>
			</tr>
			');
		}
		echo(Adm::StudyShow('info','
			<tr>
				<td align="right" valign="top" style="padding-top:6px;">添加文章的几种方式：</td>
				<td align="left">
					<div>1、当前这种手动添加文章。</div>
					<div>2、采集，需要购买《<span style="color:blue;">采集基础包</span>》插件，详情：<a href="http://otcms.com/news/7874.html" target="_blank" style="color:red;">http://otcms.com/news/7874.html</a></div>
					<div>3、文章导入，需要购买《<span style="color:blue;">文章导入导出</span>》插件，详情：<a href="http://otcms.com/news/8420.html" target="_blank" style="color:red;">http://otcms.com/news/8420.html</a></div>
					<div>4、数据同步，需要购买《<span style="color:blue;">数据同步API</span>》插件，详情：<a href="http://otcms.com/news/8410.html" target="_blank" style="color:red;">http://otcms.com/news/8410.html</a></div>
				</td>
			</tr>
			') .'
		</table>
		</div>
		<div class="clr"></div>
		<!-- <div style="padding:20px 5px 5px 5px;color:red;line-height:1.4;">提醒：伪原创词库存放在网站目录/inc/apprWord.txt，可自行添加需要的伪原创词。</div> -->

		<div class="tabMenuSubmit"><input type="image" src="'. AdmTpl::ImgSrc('button_'. $mudi) .'" /></div>
	</div>

	</form>
	');
}



// 文章管理  IF_type：news文章，user会员投稿，coll采集文章，api同步外站文章，import导入文章
function manage(){
	global $DB,$MB,$skin,$mudi,$dataType,$dataTypeCN,$pageCount,$recordCount,$systemArr,$userSysArr,$infoSysArr;

	$maxPageSize = 600;	// 每页数量最大值模式，超过显示简约模式
	$dataMode		= OT::GetStr('dataMode');
	$dataModeStr	= OT::GetStr('dataModeStr');

	$refTypeStr		= OT::GetStr('refTypeStr');
		if ($refTypeStr != '' && $refTypeStr != 'announ'){ $refTypeStr=','. Str::RegExp($refTypeStr,'sql') .','; }
	$refAddition	= OT::GetRegExpStr('refAddition','sql');
	$refTopicID		= OT::GetInt('refTopicID');
	$refState		= OT::GetInt('refState',-1);
	$refWapState	= OT::GetInt('refWapState',-1);
	$refID1			= OT::GetInt('refID1');
	$refID2			= OT::GetInt('refID2');
	$refTheme		= OT::GetRegExpStr('refTheme','sql2');
	$refSource		= OT::GetRegExpStr('refSource','sql');
	$refWriter		= OT::GetRegExpStr('refWriter','sql');
	$refUsername	= OT::GetRegExpStr('refUsername','sql');
	$refRealname	= OT::GetRegExpStr('refRealname','sql');
	$refContent		= OT::GetRegExpStr('refContent','sql');
	$refDate1		= OT::GetStr('refDate1');
		if (! strtotime($refDate1)){ $refDate1=''; }
	$refDate2		= OT::GetStr('refDate2');
		if (! strtotime($refDate2)){ $refDate2=''; }

	$refFreeGroup		= OT::GetInt('refFreeGroup');
	$refUserGroup		= OT::GetInt('refUserGroup');
	$refScore11			= OT::GetInt('refScore11', -1);
	$refScore12			= OT::GetInt('refScore12', -1);
	$refScore21			= OT::GetInt('refScore21', -1);
	$refScore22			= OT::GetInt('refScore22', -1);
	$refScore31			= OT::GetInt('refScore31', -1);
	$refScore32			= OT::GetInt('refScore32', -1);
	$refScore41			= OT::GetInt('refScore41', -1);
	$refScore42			= OT::GetInt('refScore42', -1);
	$refScore51			= OT::GetInt('refScore51', -1);
	$refScore52			= OT::GetInt('refScore52', -1);
	$refCutScore11		= OT::GetInt('refCutScore11', -1);
	$refCutScore12		= OT::GetInt('refCutScore12', -1);
	$refCutScore21		= OT::GetInt('refCutScore21', -1);
	$refCutScore22		= OT::GetInt('refCutScore22', -1);
	$refCutScore31		= OT::GetInt('refCutScore31', -1);
	$refCutScore32		= OT::GetInt('refCutScore32', -1);
	$refCutScore41		= OT::GetInt('refCutScore41', -1);
	$refCutScore42		= OT::GetInt('refCutScore42', -1);
	$refCutScore51		= OT::GetInt('refCutScore51', -1);
	$refCutScore52		= OT::GetInt('refCutScore52', -1);
	$refCutQuickMoney1	= OT::GetInt('refCutQuickMoney1', -1);
	$refCutQuickMoney2	= OT::GetInt('refCutQuickMoney2', -1);
	$refEncMediaFile	= OT::GetInt('refEncMediaFile', -1);
	$refEncFile			= OT::GetInt('refEncFile', -1);
	$refListMode		= OT::GetStr('refListMode');
		$listModeArr = array('checkUser','imgFileNum');
		if (! in_array($refListMode, $listModeArr)){ $refListMode = 'def'; }

	if ($MB->mMbRow['MB_itemNum'] >= $maxPageSize){
		$SQLstr='select IF_ID,IF_time,IF_theme,IF_userID from '. OT_dbPref .'info where 1=1';
	}elseif ($dataMode == 'user'){
		$SQLstr='select IF_ID,IF_time,IF_revTime,IF_theme,IF_themeStyle,IF_typeStr,IF_type1ID,IF_type2ID,IF_img,IF_isAudit,IF_isNew,IF_isHomeThumb,IF_isThumb,IF_isFlash,IF_isImg,IF_isMarquee,IF_isRecom,IF_isTop,IF_readNum,IF_readNumReal,IF_replyNum,IF_infoTypeDir,IF_datetimeDir,IF_userID,IF_username,IF_topicList,IF_state,IF_auditNote,IF_isGetScore,IF_getScore1,IF_getScore2,IF_getScore3,IF_adminID,IF_URL,IF_resBaidu,IF_res360,IF_resSogou,IF_resShenma,IF_resToutiao,IF_resBing,IF_resTime,IF_reportNum,IF_fileStr,IF_isRenameFile,IF_isCheckUser,IF_addition,IF_isOri from '. OT_dbPref .'info where IF_userID>=1';	// ,IF_getScore4,IF_getScore5
		// $SQLstr='select IF0.*,UE.UE_username,UE.UE_realname,UE.UE_score1,UE.UE_score2,UE.UE_score3,UE.UE_score4,UE.UE_score5 from (select IF_ID,IF_time,IF_revTime,IF_theme,IF_themeStyle,IF_typeStr,IF_type1ID,IF_type2ID,IF_img,IF_isAudit,IF_isNew,IF_isHomeThumb,IF_isThumb,IF_isFlash,IF_isImg,IF_isMarquee,IF_isRecom,IF_isTop,IF_readNum,IF_readNumReal,IF_replyNum,IF_infoTypeDir,IF_datetimeDir,IF_userID,IF_topicList,IF_state,IF_auditNote,IF_isGetScore,IF_getScore1,IF_getScore2,IF_getScore3,IF_adminID,IF_URL,IF_resBaidu,IF_res360,IF_resSogou,IF_resShenma,IF_resToutiao,IF_resBing,IF_resTime,IF_reportNum,IF_fileStr,IF_isRenameFile,IF_isCheckUser,IF_addition,IF_isOri from '. OT_dbPref .'info where IF_userID>=1) as IF0 left join '. OT_dbPref .'users as UE on IF0.IF_userID=UE.UE_ID where (1=1)';	// ,IF_getScore4,IF_getScore5
		if ($refUsername != ''){ $SQLstr .= " and IF_username like '%". $DB->ForStr($refUsername,false) ."%'"; }
		// if ($refRealname != ''){ $SQLstr .= " and UE_realname like '%". $DB->ForStr($refRealname,false) ."%'"; }
	}else{
		$SQLstr='select IF_ID,IF_type,IF_time,IF_revTime,IF_theme,IF_themeStyle,IF_themeKey,IF_typeStr,IF_img,IF_isAudit,IF_isNew,IF_isHomeThumb,IF_isThumb,IF_isImg,IF_isFlash,IF_isMarquee,IF_isRecom,IF_isTop,IF_readNum,IF_readNumReal,IF_replyNum,IF_infoTypeDir,IF_datetimeDir,IF_userID,IF_topicList,IF_state,IF_wapState,IF_auditNote,IF_URL,IF_resBaidu,IF_res360,IF_resSogou,IF_resShenma,IF_resToutiao,IF_resBing,IF_resTime,IF_collTypeID,IF_collID,IF_collUrl,IF_reportNum,IF_fileStr,IF_isRenameFile,IF_isCheckUser,IF_score1,IF_score2,IF_score3,IF_score4,IF_score5,IF_cutScore1,IF_cutScore2,IF_cutScore3,IF_cutScore4,IF_cutScore5,IF_cutQuickMoney,IF_freeGroupList,IF_userGroupList,IF_addition,IF_isEnc,IF_pwdAnswer,IF_pwdImg,IF_pwdNote,IF_imgMode,IF_imgNum,IF_imgHttpNum,IF_imgOssNum,IF_imgLocalNum,IF_fileNum,IF_fileHttpNum,IF_fileOssNum,IF_fileLocalNum,IF_isOri from '. OT_dbPref .'info where 1=1';
	}

	if ($refTypeStr != ''){ $SQLstr .= " and IF_typeStr like '%". $DB->ForStr($refTypeStr,false) ."%'"; }
	if ($refAddition != ''){
		switch ($refAddition){
			case 'audit2':		$SQLstr .= ' and IF_isAudit=2';			break;
			case 'audit1':		$SQLstr .= ' and IF_isAudit=1';			break;
			case 'audit0':		$SQLstr .= ' and IF_isAudit=0';			break;
			case 'new1':		$SQLstr .= ' and IF_isNew=1';			break;
			case 'new0':		$SQLstr .= ' and IF_isNew=0';			break;
			case 'homeThumb1':	$SQLstr .= ' and IF_isHomeThumb=1';		break;
			case 'homeThumb0':	$SQLstr .= ' and IF_isHomeThumb=0';		break;
			case 'thumb1':		$SQLstr .= ' and IF_isThumb=1';			break;
			case 'thumb0':		$SQLstr .= ' and IF_isThumb=0';			break;
			case 'flash1':		$SQLstr .= ' and IF_isFlash=1';			break;
			case 'flash0':		$SQLstr .= ' and IF_isFlash=0';			break;
			case 'isImg1':		$SQLstr .= ' and IF_isImg=1';			break;
			case 'isImg0':		$SQLstr .= ' and IF_isImg=0';			break;
			case 'marquee1':	$SQLstr .= ' and IF_isMarquee=1';		break;
			case 'marquee0':	$SQLstr .= ' and IF_isMarquee=0';		break;
			case 'recom1':		$SQLstr .= ' and IF_isRecom=1';			break;
			case 'recom0':		$SQLstr .= ' and IF_isRecom=0';			break;
			case 'top1':		$SQLstr .= ' and IF_isTop=1';			break;
			case 'top0':		$SQLstr .= ' and IF_isTop=0';			break;
			case 'voteMode0':	$SQLstr .= ' and IF_voteMode=0';		break;
			case 'voteMode1':	$SQLstr .= ' and IF_voteMode=1';		break;
			case 'voteMode2':	$SQLstr .= ' and IF_voteMode=2';		break;
			case 'voteMode11':	$SQLstr .= ' and IF_voteMode=11';		break;
			case 'isMarkNews1':	$SQLstr .= ' and IF_isMarkNews=1';		break;
			case 'isMarkNews0':	$SQLstr .= ' and IF_isMarkNews=0';		break;
			case 'userFile0':	$SQLstr .= ' and IF_isUserFile=0';		break;
			case 'userFile1':	$SQLstr .= ' and IF_isUserFile=1';		break;
			case 'userFile2':	$SQLstr .= ' and IF_isUserFile=2';		break;
			case 'isReply1':	$SQLstr .= ' and IF_isReply=1';			break;
			case 'isReply10':	$SQLstr .= ' and IF_isReply=10';		break;
			case 'isReply0':	$SQLstr .= ' and IF_isReply=0';			break;
			case 'checkUser1':	$SQLstr .= " and IF_addition like '%|checkUser|%'";			break;
			case 'checkUser0':	$SQLstr .= " and IF_addition not like '%|checkUser|%'";		break;
			case 'checkReply1':	$SQLstr .= " and IF_addition like '%|checkReply|%'";		break;
			case 'checkReply0':	$SQLstr .= " and IF_addition not like '%|checkReply|%'";	break;
			case 'checkQuick1':	$SQLstr .= " and IF_addition like '%|checkQuick|%'";		break;
			case 'checkQuick0':	$SQLstr .= " and IF_addition not like '%|checkQuick|%'";	break;
			case 'checkPwd1':	$SQLstr .= " and IF_addition like '%|checkPwd|%'";			break;
			case 'checkPwd0':	$SQLstr .= " and IF_addition not like '%|checkPwd|%'";		break;
			case 'contentImg1':	$SQLstr .= " and IF_addition like '%|contentImg|%'";		break;
			case 'contentImg0':	$SQLstr .= " and IF_addition not like '%|contentImg|%'";	break;
			case 'noMakeHtml1':	$SQLstr .= " and IF_addition like '%|noMakeHtml|%'";		break;
			case 'noMakeHtml0':	$SQLstr .= " and IF_addition not like '%|noMakeHtml|%'";	break;
			case 'noInfoType1':	$SQLstr .= " and IF_addition like '%|noInfoType|%'";		break;
			case 'noInfoType0':	$SQLstr .= " and IF_addition not like '%|noInfoType|%'";	break;
			case 'isCheckUser1':$SQLstr .= ' and IF_isCheckUser=1';		break;
			case 'isCheckUser2':$SQLstr .= ' and IF_isCheckUser=2';		break;
			case 'isCheckUser0':$SQLstr .= ' and IF_isCheckUser=0';		break;
			case 'isSitemap0':	$SQLstr .= ' and IF_isSitemap=0';		break;
			case 'isSitemap2':	$SQLstr .= ' and IF_isSitemap=2';		break;
			case 'isSitemap1':	$SQLstr .= ' and IF_isSitemap=1';		break;
			case 'isXiongzhang0':	$SQLstr .= ' and IF_isXiongzhang=0';	break;
			case 'isXiongzhang2':	$SQLstr .= ' and IF_isXiongzhang=2';	break;
			case 'isXiongzhang1':	$SQLstr .= ' and IF_isXiongzhang=1';	break;
			// case 'bdPing0':		$SQLstr .= ' and IF_bdPing=0';			break;
			// case 'bdPing2':		$SQLstr .= ' and IF_bdPing=2';			break;
			// case 'bdPing1':		$SQLstr .= ' and IF_bdPing=1';			break;
			case 'resBaidu0':	$SQLstr .= ' and IF_resBaidu=0';			break;
			case 'resBaidu1':	$SQLstr .= ' and IF_resBaidu in (1,2)';		break;
			case 'resBaidu11':	$SQLstr .= ' and IF_resBaidu in (11,12)';	break;
			case 'res3600':		$SQLstr .= ' and IF_res360=0';				break;
			case 'res3601':		$SQLstr .= ' and IF_res360 in (1,2)';		break;
			case 'res36011':	$SQLstr .= ' and IF_res360 in (11,12)';		break;
			case 'resSogou0':	$SQLstr .= ' and IF_resSogou=0';			break;
			case 'resSogou1':	$SQLstr .= ' and IF_resSogou in (1,2)';		break;
			case 'resSogou11':	$SQLstr .= ' and IF_resSogou in (11,12)';	break;
			case 'resShenma0':	$SQLstr .= ' and IF_resShenma=0';			break;
			case 'resShenma1':	$SQLstr .= ' and IF_resShenma in (1,2)';	break;
			case 'resShenma11':	$SQLstr .= ' and IF_resShenma in (11,12)';	break;
			case 'resToutiao0':	$SQLstr .= ' and IF_resToutiao=0';			break;
			case 'resToutiao1':	$SQLstr .= ' and IF_resToutiao in (1,2)';	break;
			case 'resToutiao11':$SQLstr .= ' and IF_resToutiao in (11,12)';	break;
			case 'resBing0':	$SQLstr .= ' and IF_resBing=0';				break;
			case 'resBing1':	$SQLstr .= ' and IF_resBing in (1,2)';		break;
			case 'resBing11':	$SQLstr .= ' and IF_resBing in (11,12)';	break;
			case 'tag1':		$SQLstr .= ' and Length(IF_themeKey)>=1';	break;
			case 'tag0':		$SQLstr .= ' and Length(IF_themeKey)=0';	break;
			case 'contentImg_1':$SQLstr .= ' and IF_imgNum=-1';				break;
			case 'contentImg0':	$SQLstr .= ' and IF_imgNum=0';				break;
			case 'contentImg1':	$SQLstr .= ' and IF_imgNum>=1';				break;
			case 'contentImg11':$SQLstr .= ' and IF_imgLocalNum>=1';		break;
			case 'contentImg12':$SQLstr .= ' and IF_imgHttpNum>=1';			break;
			case 'contentImg13':$SQLstr .= ' and IF_imgOssNum>=1';			break;
			case 'img12':		$SQLstr .= ' and IF_imgMode>=1';			break;
			case 'img10':		$SQLstr .= ' and IF_imgMode in (10,13)';	break;
			case 'img3':		$SQLstr .= ' and IF_imgMode in (3,13)';		break;	// 3云存储 10自动配图 13自动配图云存储
			case 'img2':		$SQLstr .= ' and IF_imgMode=2';				break;
			case 'img1':		$SQLstr .= ' and IF_imgMode=1';				break;
			case 'img0':		$SQLstr .= ' and IF_imgMode=0';				break;
			case 'file_1':		$SQLstr .= ' and IF_fileNum=-1';			break;
			case 'file0':		$SQLstr .= ' and IF_fileNum=0';				break;
			case 'file1':		$SQLstr .= ' and IF_fileNum>=1';			break;
			case 'file11':		$SQLstr .= ' and IF_fileLocalNum>=1';		break;
			case 'file12':		$SQLstr .= ' and IF_fileHttpNum>=1';		break;
			case 'file13':		$SQLstr .= ' and IF_fileOssNum>=1';			break;
			case 'file0_2':		$SQLstr .= ' and Length(IF_fileStr)=0';		break;
			case 'file1_2':		$SQLstr .= ' and Length(IF_fileStr)>=5';	break;
			case 'collInfo':	$SQLstr .= ' and IF_type="coll"';			break;
			case 'apiInfo':		$SQLstr .= ' and IF_type="api"';			break;
			case 'importInfo':	$SQLstr .= ' and IF_type="import"';			break;
			case 'userInfo':	$SQLstr .= ' and IF_userID>=1';				break;
			case 'markNewsId0':	$SQLstr .= ' and Length(IF_themeKeyIdStr)=0';	break;
			case 'prevNextId0':	$SQLstr .= ' and (IF_prevNewsId=0 or IF_nextNewsId=0)';		break;
		}
	}

	if ($refState > -1){ $SQLstr .= ' and IF_state='. $refState; }
	if ($refWapState > -1){ $SQLstr .= ' and IF_wapState='. $refWapState; }
	if ($refID1 > 0){ $SQLstr .= ' and IF_ID>='. $refID1; }else{ $refID1 = ''; }
	if ($refID2 > 0){ $SQLstr .= ' and IF_ID<='. $refID2; }else{ $refID2 = ''; }
	if ($refTopicID > 0){ $SQLstr .= ' and IF_topicList like "%,'. $refTopicID .',%"'; }
	if ($refTheme != ''){ $SQLstr .= " and IF_theme like '%". $DB->ForStr($refTheme,false) ."%'"; }
	if ($refSource != ''){ $SQLstr .= " and IF_source like '%". $DB->ForStr($refSource,false) ."%'"; }
	if ($refWriter != ''){ $SQLstr .= " and IF_writer like '%". $DB->ForStr($refWriter,false) ."%'"; }
	if ($refContent != ''){
		$addiStr = '';
		$addiArr = array();
		for ($i=1; $i<=$infoSysArr['IS_tabNum']; $i++){
			$addiArr[] = "select IC_ID from ". OT_dbPref ."infoContent". $i ." where IC_content like '%". $DB->ForStr($refContent,false) ."%'";
		}
		if (count($addiArr) > 0){
			$addiStr = 'or IF_ID in ('. implode(' union ',$addiArr) .')';
		}
		$SQLstr .= " and (IF_content like '%". $DB->ForStr($refContent,false) ."%'". $addiStr .")";
	}
	if ($refDate1 != ''){ $SQLstr .= ' and IF_time>='. $DB->ForTime($refDate1); }
	if ($refDate2 != ''){ $SQLstr .= ' and IF_time<='. $DB->ForTime(TimeDate::Add('d',1,$refDate2)); }

	if ($refFreeGroup > 0){ $SQLstr .= ' and IF_freeGroupList like "%['. $refFreeGroup .']%"'; }
	if ($refUserGroup > 0){ $SQLstr .= ' and IF_userGroupList like "%['. $refUserGroup .']%"'; }
	if ($refScore11 >= 0){ $SQLstr .= ' and IF_score1>='. $refScore11; }else{ $refScore11 = ''; }
	if ($refScore12 >= 0){ $SQLstr .= ' and IF_score1<='. $refScore12; }else{ $refScore12 = ''; }
	if ($refScore21 >= 0){ $SQLstr .= ' and IF_score2>='. $refScore21; }else{ $refScore21 = ''; }
	if ($refScore22 >= 0){ $SQLstr .= ' and IF_score2<='. $refScore22; }else{ $refScore22 = ''; }
	if ($refScore31 >= 0){ $SQLstr .= ' and IF_score3>='. $refScore31; }else{ $refScore31 = ''; }
	if ($refScore32 >= 0){ $SQLstr .= ' and IF_score3<='. $refScore32; }else{ $refScore32 = ''; }
	if ($refScore41 >= 0){ $SQLstr .= ' and IF_score4>='. $refScore41; }else{ $refScore41 = ''; }
	if ($refScore42 >= 0){ $SQLstr .= ' and IF_score4<='. $refScore42; }else{ $refScore42 = ''; }
	if ($refScore51 >= 0){ $SQLstr .= ' and IF_score5>='. $refScore51; }else{ $refScore51 = ''; }
	if ($refScore52 >= 0){ $SQLstr .= ' and IF_score5<='. $refScore52; }else{ $refScore52 = ''; }
	if ($refCutScore11 >= 0){ $SQLstr .= ' and IF_cutScore1>='. $refCutScore11; }else{ $refCutScore11 = ''; }
	if ($refCutScore12 >= 0){ $SQLstr .= ' and IF_cutScore1<='. $refCutScore12; }else{ $refCutScore12 = ''; }
	if ($refCutScore21 >= 0){ $SQLstr .= ' and IF_cutScore2>='. $refCutScore21; }else{ $refCutScore21 = ''; }
	if ($refCutScore22 >= 0){ $SQLstr .= ' and IF_cutScore2<='. $refCutScore22; }else{ $refCutScore22 = ''; }
	if ($refCutScore31 >= 0){ $SQLstr .= ' and IF_cutScore3>='. $refCutScore31; }else{ $refCutScore31 = ''; }
	if ($refCutScore32 >= 0){ $SQLstr .= ' and IF_cutScore3<='. $refCutScore32; }else{ $refCutScore32 = ''; }
	if ($refCutScore41 >= 0){ $SQLstr .= ' and IF_cutScore4>='. $refCutScore41; }else{ $refCutScore41 = ''; }
	if ($refCutScore42 >= 0){ $SQLstr .= ' and IF_cutScore4<='. $refCutScore42; }else{ $refCutScore42 = ''; }
	if ($refCutScore51 >= 0){ $SQLstr .= ' and IF_cutScore5>='. $refCutScore51; }else{ $refCutScore51 = ''; }
	if ($refCutScore52 >= 0){ $SQLstr .= ' and IF_cutScore5<='. $refCutScore52; }else{ $refCutScore52 = ''; }
	if ($refCutQuickMoney1 >= 0){ $SQLstr .= ' and IF_cutQuickMoney>='. $refCutQuickMoney1; }else{ $refCutQuickMoney1 = ''; }
	if ($refCutQuickMoney2 >= 0){ $SQLstr .= ' and IF_cutQuickMoney<='. $refCutQuickMoney2; }else{ $refCutQuickMoney2 = ''; }
	if ($refEncMediaFile == 1){ $SQLstr .= ' and IF_userGroupList like "%['. $refEncMediaFile .']%"'; }
	if ($refEncFile == 1){ $SQLstr .= ' and IF_userGroupList like "%['. $refEncFile .']%"'; }

	$orderName = OT::ListDefVal(OT::GetStr('orderName'), 'IF_theme|IF_readNum|IF_typeStr|IF_state|IF_wapState|IF_time|IF_ID|IF_reportNum|IF_username|UE_username|UE_realname|UE_score1|UE_score2|UE_score3|UE_score4|UE_score5', 'IF_time');
	$orderSort = OT::ListDefVal(OT::GetStr('orderSort'), 'ASC', 'DESC');

	$userGroupStr = '';
	$freeGroupOptionStr = '';
	$userGroupOptionStr = '';
	$groupArr = array();
	$groupexe = $DB->query('select UG_ID,UG_theme from '. OT_dbPref .'userGroup where UG_state=1 order by UG_rank ASC');
	while ($row = $groupexe->fetch()){
		$freeGroupOptionStr .= '<option value="'. $row['UG_ID'] .'" '. Is::Selected($refFreeGroup,$row['UG_ID']) .'>'. $row['UG_theme'] .'</option>';
		$userGroupOptionStr .= '<option value="'. $row['UG_ID'] .'" '. Is::Selected($refUserGroup,$row['UG_ID']) .'>'. $row['UG_theme'] .'</option>';
		$userGroupStr .= '<label><input type="checkbox" name="userGroupList[]" value="['. $row['UG_ID'] .']" title="'. $row['UG_theme'] .'">'. $row['UG_theme'] .'</label>&ensp;&ensp;';
		$groupArr[$row['UG_ID']] = $row['UG_theme'];
	}
	unset($groupexe);

	$moveOptionStr = '';
	$topicOptionStr= '';
	$whereInfoTypeIdStr = '';
	$skin->TableTop('share_refer.gif','',$dataTypeCN .'查询');
		echo('
		<form id="refForm" name="refForm" method="get" action="">
		<input type="hidden" name="mudi" value="'. $mudi .'" />
		<input type="hidden" name="dataMode" value="'. $dataMode .'" />
		<input type="hidden" name="dataModeStr" value="'. $dataModeStr .'" />
		<input type="hidden" name="dataType" value="'. $dataType .'" />
		<input type="hidden" name="dataTypeCN" value="'. $dataTypeCN .'" />

		<table width="98%" align="center" border="0" cellSpacing="0" cellPadding="0" summary="" class="padd5">
		');

		$aarnArr = AppAdminRightNews::InfoItem2($MB->mRightStr, $refTypeStr, $MB->mUserID);
		if ( is_array($aarnArr) && count($aarnArr) >= 3 ){
			$infoTypeOption		= $aarnArr['infoTypeOption'];
			$moveOptionStr		= $aarnArr['moveOption'];
			$whereInfoTypeIdStr = $aarnArr['whereStr'];
		}else{
			$infoTypeOption = '<option value="announ" '. Is::Selected($refTypeStr,'announ') .'>0、'. $systemArr['SYS_announName'] .'</option>';
			$moveOptionStr .= '<option value="announ">0、'. $systemArr['SYS_announName'] .'</option>';
			$typeNum = 0;
			$typeexe=$DB->query('select IT_ID,IT_theme,IT_mode from '. OT_dbPref .'infoType where IT_state=1 and IT_level=1 order by IT_rank ASC');
			while ($row = $typeexe->fetch()){
				$typeNum ++;
				$infoTypeOption .= '<option value="'. $row['IT_ID'] .'" '. Is::InstrSelected($refTypeStr,','. $row['IT_ID'] .',') .'>'. $typeNum .'、'. $row['IT_theme'] .'&ensp;&ensp;[id:'. $row['IT_ID'] .']'. InfoType::ModeCN($row['IT_mode']) .'</option>';
				$moveOptionStr .= '<option value=",'. $row['IT_ID'] .',">'. $typeNum .'、'. $row['IT_theme'] .'&ensp;&ensp;[id:'. $row['IT_ID'] .']'. InfoType::ModeCN($row['IT_mode']) .'</option>';
				$type2exe=$DB->query('select IT_ID,IT_theme,IT_mode from '. OT_dbPref .'infoType where IT_state=1 and IT_level=2 and IT_fatID='. $row['IT_ID'] .' order by IT_rank ASC');
				while ($row2 = $type2exe->fetch()){
					$infoTypeOption .= '<option value="'. $row2['IT_ID'] .'" '. Is::Selected($refTypeStr,','. $row2['IT_ID'] .',') .'>&ensp;&ensp;&ensp;┣&ensp;'. $row2['IT_theme'] .'&ensp;&ensp;[id:'. $row2['IT_ID'] .']'. InfoType::ModeCN($row['IT_mode']) .'</option>';
					$moveOptionStr .= '<option value=",'. $row['IT_ID'] .','. $row2['IT_ID'] .',">&ensp;&ensp;&ensp;┣&ensp;'. $row2['IT_theme'] .'&ensp;&ensp;[id:'. $row2['IT_ID'] .']'. InfoType::ModeCN($row['IT_mode']) .'</option>';
				}
			}
		}

		if ($dataMode == 'user'){
			// 会员投稿 查询栏
			echo('
			<tr>
				<td style="width:32%;">
					栏目：<select id="refTypeStr" name="refTypeStr" style="width:180px;">
						<option value=""></option>
						'. $infoTypeOption .'
						</select>
						'. Area::SelectOptionFind('refTypeStr',72) .'
				</td>
				<td style="width:28%;">
					会员名：<input type="text" name="refUsername" size="20" style="width:120px;" value="'. $refUsername .'" />
				</td>
				<td style="width:40%;">
					&ensp;&ensp;&ensp;&ensp;审核：<select id="refAddition" name="refAddition">
						<option value=""></option>
						<option value="audit1" '. Is::Selected($refAddition,'audit1') .'>已审核</option>
						<option value="audit0" '. Is::Selected($refAddition,'audit0') .'>未审核</option>
						<option value="audit2" '. Is::Selected($refAddition,'audit2') .'>被拒绝</option>
						</select>
					&ensp;&ensp;&ensp;&ensp;状态：<select id="refState" name="refState">
						<option value=""></option>
						<option value="1" '. Is::Selected($refState,1) .'>显示</option>
						<option value="0" '. Is::Selected($refState,0) .'>隐藏</option>
						</select>
				</td>
			</tr>
			<tr>
				<td>
					标题：<input type="text" name="refTheme" size="20" style="width:175px;" value="'. $refTheme .'" />
				</td>
				<td>
					<!-- &ensp;&ensp;昵称：<input type="text" name="refRealname" size="20" style="width:120px;" value="'. $refRealname .'" /> -->
				</td>
				<td>
					发布日期：<input type="text" name="refDate1" size="10" style="width:100px;" value="'. $refDate1 .'" onfocus="WdatePicker({dateFmt:\'yyyy-MM-dd\'})" />&ensp;
					至&ensp;<input type="text" name="refDate2" size="10" style="width:100px;" value="'. $refDate2 .'" onfocus="WdatePicker({dateFmt:\'yyyy-MM-dd\'})" />
				</td>
			</tr>
			');
		}else{
			// 文章管理 查询栏
			echo('
			<tr>
				<td style="width:32%;">
					栏目：<select id="refTypeStr" name="refTypeStr" style="width:180px;">
						<option value=""></option>
						'. $infoTypeOption .'
						</select>
						'. Area::SelectOptionFind('refTypeStr',72) .'
				</td>
				<td style="width:28%;">
					属性：<select id="refAddition" name="refAddition">
						<option value=""></option>
						<option value="audit2" style="color:red;" '. Is::Selected($refAddition,'audit2') .'>被拒绝ㄨ</option>
						<option value="audit1" style="color:#0066CC;" '. Is::Selected($refAddition,'audit1') .'>已审核√</option>
						<option value="audit0" style="color:#707070;" '. Is::Selected($refAddition,'audit0') .'>已审核ㄨ</option>
						<option value="new1" style="color:#0066CC;" '. Is::Selected($refAddition,'new1') .'>最新消息√</option>
						<option value="new0" style="color:#707070;" '. Is::Selected($refAddition,'new0') .'>最新消息ㄨ</option>
						<option value="homeThumb1" style="color:#0066CC;" '. Is::Selected($refAddition,'homeThumb1') .'>首页缩略图√</option>
						<option value="homeThumb0" style="color:#707070;" '. Is::Selected($refAddition,'homeThumb0') .'>首页缩略图ㄨ</option>
						<option value="thumb1" style="color:#0066CC;" '. Is::Selected($refAddition,'thumb1') .'>缩略图√</option>
						<option value="thumb0" style="color:#707070;" '. Is::Selected($refAddition,'thumb0') .'>缩略图ㄨ</option>
						<option value="flash1" style="color:#0066CC;" '. Is::Selected($refAddition,'flash1') .'>幻灯片√</option>
						<option value="flash0" style="color:#707070;" '. Is::Selected($refAddition,'flash0') .'>幻灯片ㄨ</option>
						<option value="isImg1" style="color:#0066CC;" '. Is::Selected($refAddition,'isImg1') .'>滚动图片√</option>
						<option value="isImg0" style="color:#707070;" '. Is::Selected($refAddition,'isImg0') .'>滚动图片ㄨ</option>
						<option value="marquee1" style="color:#0066CC;" '. Is::Selected($refAddition,'marquee1') .'>滚动信息√</option>
						<option value="marquee0" style="color:#707070;" '. Is::Selected($refAddition,'marquee0') .'>滚动信息ㄨ</option>
						<option value="recom1" style="color:#0066CC;" '. Is::Selected($refAddition,'recom1') .'>推荐√</option>
						<option value="recom0" style="color:#707070;" '. Is::Selected($refAddition,'recom0') .'>推荐ㄨ</option>
						<option value="top1" style="color:#0066CC;" '. Is::Selected($refAddition,'top1') .'>置顶√</option>
						<option value="top0" style="color:#707070;" '. Is::Selected($refAddition,'top0') .'>置顶ㄨ</option>
						<option value="collInfo" '. Is::Selected($refAddition,'collInfo') .'>类型：采集文章</option>
						<option value="apiInfo" '. Is::Selected($refAddition,'apiInfo') .'>类型：API同步文章</option>
						<option value="userInfo" '. Is::Selected($refAddition,'userInfo') .'>类型：会员投稿</option>
						<option value="importInfo" '. Is::Selected($refAddition,'importInfo') .'>类型：导入文章</option>
						<option value="voteMode0" style="color:#707070;" '. Is::Selected($refAddition,'voteMode0') .'>投票方式：关闭</option>
						<option value="voteMode1" style="color:#0066CC;" '. Is::Selected($refAddition,'voteMode1') .'>投票方式：心情</option>
						<option value="voteMode2" style="color:#0066CC;" '. Is::Selected($refAddition,'voteMode2') .'>投票方式：顶踩</option>
						<option value="voteMode11" style="color:#0066CC;" '. Is::Selected($refAddition,'voteMode11') .'>投票方式：百度喜欢</option>
						<option value="isMarkNews1" style="color:#0066CC;" '. Is::Selected($refAddition,'isMarkNews1') .'>相关文章：开启</option>
						<option value="isMarkNews0" style="color:#707070;" '. Is::Selected($refAddition,'isMarkNews0') .'>相关文章：关闭</option>
						<option value="userFile1" style="color:#0066CC;" '. Is::Selected($refAddition,'userFile1') .'>仅会员下载附件：开启</option>
						<option value="userFile0" style="color:#707070;" '. Is::Selected($refAddition,'userFile0') .'>仅会员下载附件：关闭</option>
						<option value="isReply1" style="color:#0066CC;" '. Is::Selected($refAddition,'isReply1') .'>评论区：开启</option>
						<option value="isReply10" style="color:#000;" '. Is::Selected($refAddition,'isReply10') .'>评论区：仅限会员</option>
						<option value="isReply0" style="color:#707070;" '. Is::Selected($refAddition,'isReply0') .'>评论区：关闭</option>
						<option value="checkUser1" style="color:#0066CC;" '. Is::Selected($refAddition,'checkUser1') .'>限制阅读：仅限会员√</option>
						<option value="checkUser0" style="color:#707070;" '. Is::Selected($refAddition,'checkUser0') .'>限制阅读：仅限会员ㄨ</option>
						<option value="checkQuick1" style="color:#0066CC;" '. Is::Selected($refAddition,'checkQuick1') .'>限制阅读：直接在线支付√</option>
						<option value="checkQuick0" style="color:#707070;" '. Is::Selected($refAddition,'checkQuick0') .'>限制阅读：直接在线支付ㄨ</option>
						<option value="checkPwd1" style="color:#0066CC;" '. Is::Selected($refAddition,'checkPwd1') .'>限制阅读：输入密码可见√</option>
						<option value="checkPwd0" style="color:#707070;" '. Is::Selected($refAddition,'checkPwd0') .'>限制阅读：输入密码可见ㄨ</option>
						<option value="isCheckUser1" style="color:#707070;" '. Is::Selected($refAddition,'isCheckUser1') .'>限制阅读：仅限会员（旧版）</option>
						<option value="isCheckUser2" style="color:#707070;" '. Is::Selected($refAddition,'isCheckUser2') .'>限制阅读：关注公众号（旧版）</option>
						<option value="isCheckUser0" style="color:#707070;" '. Is::Selected($refAddition,'isCheckUser0') .'>限制阅读：关闭（旧版）</option>
						'. AppMapBaidu::InfoOptionBox1($refAddition) .'
						'. AppResBaidu::InfoOptionBox1($refAddition) .'
						'. AppRes360::InfoOptionBox1($refAddition) .'
						'. AppResSogou::InfoOptionBox1($refAddition) .'
						'. AppResShenma::InfoOptionBox1($refAddition) .'
						'. AppResToutiao::InfoOptionBox1($refAddition) .'
						'. AppResBing::InfoOptionBox1($refAddition) .'
						<option value="tag1" style="color:#0066CC;" '. Is::Selected($refAddition,'tag1') .'>有标签√</option>
						<option value="tag0" style="color:#707070;" '. Is::Selected($refAddition,'tag0') .'>无标签ㄨ</option>
						<option value="contentImg1" style="color:#0066CC;" '. Is::Selected($refAddition,'contentImg1') .'>有正文图片√</option>
						<option value="contentImg11" style="color:#0066CC;" '. Is::Selected($refAddition,'contentImg11') .'>有正文本地图片√</option>
						<option value="contentImg12" style="color:#0066CC;" '. Is::Selected($refAddition,'contentImg12') .'>有正文远程图片√</option>
						<option value="contentImg13" style="color:#0066CC;" '. Is::Selected($refAddition,'contentImg13') .'>有正文云存储图片√</option>
						<option value="contentImg0" style="color:#707070;" '. Is::Selected($refAddition,'contentImg0') .'>无正文图片ㄨ</option>
						<option value="contentImg_1" style="color:#707070;" '. Is::Selected($refAddition,'contentImg_1') .'>正文图片数未检测ㄨ</option>
						<option value="img12" style="color:#0066CC;" '. Is::Selected($refAddition,'img12') .'>有缩略图√</option>
						<option value="img1" style="color:#0066CC;" '. Is::Selected($refAddition,'img1') .'>有本地缩略图√</option>
						<option value="img2" style="color:#0066CC;" '. Is::Selected($refAddition,'img2') .'>有远程缩略图√</option>
						<option value="img3" style="color:#0066CC;" '. Is::Selected($refAddition,'img3') .'>有云存储缩略图√</option>
						<option value="img10" style="color:#0066CC;" '. Is::Selected($refAddition,'img10') .'>有自动配缩略图√</option>
						<option value="img0" style="color:#707070;" '. Is::Selected($refAddition,'img0') .'>无缩略图ㄨ</option>
						<option value="file1" style="color:#0066CC;" '. Is::Selected($refAddition,'file1') .'>有附件√</option>
						<option value="file11" style="color:#0066CC;" '. Is::Selected($refAddition,'file11') .'>有本地附件√</option>
						<option value="file12" style="color:#0066CC;" '. Is::Selected($refAddition,'file12') .'>有远程附件√</option>
						<option value="file13" style="color:#0066CC;" '. Is::Selected($refAddition,'file13') .'>有云存储附件√</option>
						<option value="file0" style="color:#707070;" '. Is::Selected($refAddition,'file0') .'>无附件ㄨ</option>
						<option value="file_1" style="color:#707070;" '. Is::Selected($refAddition,'file_1') .'>附件数未检测ㄨ</option>
						<option value="file1_2" style="color:#0066CC;" '. Is::Selected($refAddition,'file1_2') .'>有附件(旧版)√</option>
						<option value="file0_2" style="color:#707070;" '. Is::Selected($refAddition,'file0_2') .'>无附件(旧版)ㄨ</option>
						<option value="markNewsId0" '. Is::Selected($refAddition,'markNewsId0') .'>相关文章ID空</option>
						<option value="prevNextId0" '. Is::Selected($refAddition,'prevNextId0') .'>上下篇ID空</option>
						<option value="contentImg1" style="color:#0066CC;" '. Is::Selected($refAddition,'contentImg1') .'>附加功能：正文显示缩略图√</option>
						<option value="contentImg0" style="color:#707070;" '. Is::Selected($refAddition,'contentImg0') .'>附加功能：正文显示缩略图ㄨ</option>
						<option value="noMakeHtml1" style="color:#0066CC;" '. Is::Selected($refAddition,'noMakeHtml1') .'>附加功能：提交不生成静态页√</option>
						<option value="noMakeHtml0" style="color:#707070;" '. Is::Selected($refAddition,'noMakeHtml0') .'>附加功能：提交不生成静态页ㄨ</option>
						<option value="noInfoType1" style="color:#0066CC;" '. Is::Selected($refAddition,'noInfoType1') .'>附加功能：栏目[文章设置覆盖]无效√</option>
						<option value="noInfoType0" style="color:#707070;" '. Is::Selected($refAddition,'noInfoType0') .'>附加功能：栏目[文章设置覆盖]无效ㄨ</option>
						</select>
				</td>
				<td style="width:40%;">
					电脑状态：<select id="refState" name="refState">
						<option value=""></option>
						<option value="1" '. Is::Selected($refState,1) .'>显示</option>
						<option value="0" '. Is::Selected($refState,0) .'>隐藏</option>
						</select>
					&ensp;&ensp;&ensp;&ensp;ID范围：<input type="text" name="refID1" size="10" style="width:70px;" value="'. $refID1 .'" />&ensp;
					至&ensp;<input type="text" name="refID2" size="10" style="width:70px;" value="'. $refID2 .'" />
				</td>
			</tr>
			<tr>
				<td>
					标题：<input type="text" name="refTheme" size="20" style="width:175px;" value="'. $refTheme .'" />
				</td>
				<td>
					内容：<input type="text" name="refContent" size="14" style="width:150px;" value="'. $refContent .'" />
				</td>
				<td>
					手机状态：<select id="refWapState" name="refWapState">
						<option value=""></option>
						<option value="1" '. Is::Selected($refWapState,1) .'>显示</option>
						<option value="0" '. Is::Selected($refWapState,0) .'>隐藏</option>
						</select>
					'. AppTopic::InfoBox1($refTopicID,$topicOptionStr) .'
				</td>
			</tr>
			<tr>
				<td>
					作者：<input type="text" name="refWriter" size="14" style="width:175px;" value="'. $refWriter .'" />
				</td>
				<td>
					来源：<input type="text" name="refSource" size="14" style="width:150px;" value="'. $refSource .'" />
				</td>
				<td>
					发布日期：<input type="text" name="refDate1" size="10" style="width:100px;" value="'. $refDate1 .'" onfocus="WdatePicker({dateFmt:\'yyyy-MM-dd\'})" />&ensp;
					至&ensp;<input type="text" name="refDate2" size="10" style="width:100px;" value="'. $refDate2 .'" onfocus="WdatePicker({dateFmt:\'yyyy-MM-dd\'})" />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					限制阅读积分：
					积分1 <input type="text" name="refScore11" size="14" style="width:55px;" value="'. $refScore11 .'" /> - <input type="text" name="refScore12" size="14" style="width:55px;" value="'. $refScore12 .'" />，
					积分2 <input type="text" name="refScore21" size="14" style="width:55px;" value="'. $refScore21 .'" /> - <input type="text" name="refScore22" size="14" style="width:55px;" value="'. $refScore22 .'" />，
					积分3 <input type="text" name="refScore31" size="14" style="width:55px;" value="'. $refScore31 .'" /> - <input type="text" name="refScore32" size="14" style="width:55px;" value="'. $refScore32 .'" />
				</td>
				<td>
					免费阅读组：<select name="refFreeGroup"><option value=""></option>'. $freeGroupOptionStr .'</select>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					付费阅读积分：
					积分1 <input type="text" name="refCutScore11" size="14" style="width:55px;" value="'. $refCutScore11 .'" /> - <input type="text" name="refCutScore12" size="14" style="width:55px;" value="'. $refCutScore12 .'" />，
					积分2 <input type="text" name="refCutScore21" size="14" style="width:55px;" value="'. $refCutScore21 .'" /> - <input type="text" name="refCutScore22" size="14" style="width:55px;" value="'. $refCutScore22 .'" />，
					积分3 <input type="text" name="refCutScore31" size="14" style="width:55px;" value="'. $refCutScore31 .'" /> - <input type="text" name="refCutScore32" size="14" style="width:55px;" value="'. $refCutScore32 .'" />
				</td>
				<td>
					限制/付费阅读组：<select name="refUserGroup"><option value=""></option>'. $userGroupOptionStr .'</select>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					直接在线支付：<input type="text" name="refCutQuickMoney1" value="'. $refCutQuickMoney1 .'" size="3" style="width:55px;" /> - <input type="text" name="refCutQuickMoney2" value="'. $refCutQuickMoney2 .'" size="3" style="width:55px;" /> 元
					&ensp;&ensp;&ensp;&ensp;
					附加隐藏项：<select name="refEncMediaFile">
									<option value=""></option>
									<option value="1" style="color:#0066CC;" '. Is::Selected($refEncMediaFile,1) .'>视频音频√</option>
									<option value="0" style="color:#707070;" '. Is::Selected($refEncMediaFile,0) .'>视频音频ㄨ</option>
								</select>
								<select name="refEncFile">
									<option value=""></option>
									<option value="1" style="color:#0066CC;" '. Is::Selected($refEncFile,1) .'>附件文件√</option>
									<option value="0" style="color:#707070;" '. Is::Selected($refEncFile,0) .'>附件文件ㄨ</option>
								</select>
				</td>
				<td>
					列表显示模式：<label><input type="radio" name="refListMode" value="def" '. Is::Checked($refListMode,'def') .' />默认</label>&ensp;&ensp;
						<label><input type="radio" name="refListMode" value="checkUser" '. Is::Checked($refListMode,'checkUser') .' />付费阅读</label>&ensp;&ensp;
						<label><input type="radio" name="refListMode" value="imgFileNum" '. Is::Checked($refListMode,'imgFileNum') .' />图片附件数量</label>&ensp;&ensp;
				</td>
			</tr>
			');
		}
		echo('
		<tr>
			<td align="center" style="padding:5px;padding-top:20px" colspan="4">
				<input type="image" src="'. AdmTpl::ImgSrc('button_refer') .'" />
				&ensp;&ensp;&ensp;&ensp;
				<img src="'. AdmTpl::ImgSrc('button_reset') .'" onclick=\'document.location.href="?mudi='. $mudi .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'"\' style="cursor:pointer" alt="" />
			</td>
		</tr>
		</table>
		</form>
		');
	$skin->TableBottom();

	echo('
	<div style="padding:12px 6px 6px 6px;">
		<input type="button" value="内容表管理" onclick=\'document.location.href="?mudi=infoContent&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&backURL="+ encodeURIComponent(document.location.href);\' />
		&ensp;&ensp;<input type="button" value="限制阅读记录" onclick=\'document.location.href="infoPayData.php?mudi=manage&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataType='. $dataType .'&dataTypeCN='. urlencode('限制阅读记录') .'&backURL="+ encodeURIComponent(document.location.href);\' />

		'. AppBase::Show('&ensp;&ensp;<input type="button" value="静态页文件管理" onclick=\'document.location.href="htmlFile.php?mudi=manage&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataType='. $dataType .'&dataTypeCN='. urlencode('静态页文件') .'&backURL="+ encodeURIComponent(document.location.href);\' />'. Skin::PluSign('商业版基础包','bottom') ) .'

		'. AppInfoImport::Show('&ensp;&ensp;<input type="button" value="文章批量导入" onclick=\'document.location.href="infoImport.php?mudi=infoSet&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataType='. $dataType .'&dataTypeCN='. urlencode('文章批量导入') .'&backURL="+ encodeURIComponent(document.location.href);\' />'. Skin::PluSign('文章导入导出','bottom') ) .'

		'. AppAudioVideo::InfoBtn() .'

		&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;
		批处理脚本：<select id="jbDeal" name="jbDeal" onchange="CheckJbDeal()">
				<option value=""></option>
				<option value="prevNext0">上下篇文章未赋值处理</option>
				<option value="markNews0">相关文章未赋值处理</option>
				<option value="contentImg1">【正文显示缩略图】全部打钩</option>
				<option value="contentImg0">【正文显示缩略图】全部不打钩</option>
				<option value="noMakeHtml1">【提交不生成静态页】全部打钩</option>
				<option value="noMakeHtml0">【提交不生成静态页】全部不打钩</option>
				<option value="noInfoType1">【栏目[文章设置覆盖]无效】全部打钩</option>
				<option value="noInfoType0">【栏目[文章设置覆盖]无效】全部不打钩</option>
				'. AppAutoImg::Show('<option value="autoImg">缩略图为空自动配图【插件】</option>') .'
			</select>
		&ensp;&ensp;<span id="dealAlertStr" style="color:blue;"></span>
	</div>
	');

	if ($systemArr['SYS_isTimeInfo']==1){
		echo('
		<div class="font2_1" style="padding:5px;color:red;">提醒：已开启文章定时发布功能，所有发布时间超过当前时间的文章，均不会显示在前台。<span class="font1_2">（[网站参数设置]-[基本信息]可设置关闭）</span></div>
		');
	}

	echo('
	<form id="listForm" name="listForm" method="post" action="info_deal.php?mudi=moreDel" onsubmit="return CheckListForm()">
	<script language="javascript" type="text/javascript">document.write (\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>
	<input type="hidden" name="dataType" value="'. $dataType .'" />
	<input type="hidden" name="dataTypeCN" value="'. $dataTypeCN .'" />
	');

	$titleArr = array();
	$skin->TableTop2('share_list.gif','',$dataTypeCN .'列表');
	if ($MB->mMbRow['MB_itemNum'] >= $maxPageSize){
		// 每页数量超过600模式
		echo('
		<div class="font2_1" style="padding:5px;color:red;">
			每页数量超过<b>'. $maxPageSize .'</b>条<span style="color:#000;">（实际'. $MB->mMbRow['MB_itemNum'] .'条）</span>，自动开启简约模式，防止页面内容太多而打不开。批量设置提交时，如果出现SQL错误，请增加mysql数据包最大量（一种：MySQL目录my.ini文件修改max_allowed_packet参数；另一种：到[管理员区→程序文件检查-SQL语句调试]临时增加执行：<span style="color:blue;">set global max_allowed_packet = 999999999</span>）；如果提示“请选择批量设置的操作”，修改php.ini里 <span style="color:blue;">post_max_size</span><span style="color:#000;">(当前：'. ini_get('post_max_size') .'，建议≥512M)</span> 和 <span style="color:blue;">max_input_vars</span><span style="color:#000;">(当前：'. ini_get('max_input_vars') .'，建议≥100000)</span> 值
		</div>
		');
		$titleArr[] = array('width'=>'5%',	'name'=>'<input type="checkbox" id="selAll" name="selAll" onclick="CheckBoxAll()" />');
		$titleArr[] = array('width'=>'7%',	'name'=>'序号');
		$titleArr[] = array('width'=>'8%',	'name'=>$skin->ShowArrow('ID','IF_ID',$orderName,$orderSort));
		$titleArr[] = array('width'=>'50%',	'name'=>$skin->ShowArrow('标题','IF_theme',$orderName,$orderSort));
		$titleArr[] = array('width'=>'15%',	'name'=>$skin->ShowArrow('发布日期','IF_time',$orderName,$orderSort));
		$titleArr[] = array('width'=>'15%',	'name'=>'复制&ensp;修改&ensp;删除');
		$skin->TableTitleArr($titleArr);

	}elseif ($dataMode == 'user'){
		// 会员投稿 列表
		$newsAddScoreArr = Users::ScoreArr('newsAdd');

		$titleArr[] = array('width'=>'4%',	'name'=>'<input type="checkbox" id="selAll" name="selAll" onclick="CheckBoxAll()" />');
		$titleArr[] = array('width'=>'5%',	'name'=>'序号');
		$titleArr[] = array('width'=>'5%',	'name'=>$skin->ShowArrow('ID','IF_ID',$orderName,$orderSort));
		$titleArr[] = array('width'=>'25%',	'name'=>$skin->ShowArrow('标题','IF_theme',$orderName,$orderSort));
		$titleArr[] = array('width'=>'14%',	'name'=>'栏目');
		$titleArr[] = array('width'=>'9%',	'name'=>$skin->ShowArrow('发布日期','IF_time',$orderName,$orderSort));

		$titleArr[] = array('width'=>'9%',	'name'=>$skin->ShowArrow('用户名','IF_username',$orderName,$orderSort));	//  .'/昵称'
		$titleArr[] = array('width'=>'10%',	'name'=>'文章积分');
		/*
		$titleArr[] = array('width'=>'9%',	'name'=>$skin->ShowArrow('用户名','UE_username',$orderName,$orderSort) .'/'. 
													$skin->ShowArrow('昵称','UE_realname',$orderName,$orderSort));
		$titleArr[] = array('width'=>'10%',	'name'=>$skin->ShowArrow('积分1','UE_score1',$orderName,$orderSort) .'/'. 
													$skin->ShowArrow('2','UE_score2',$orderName,$orderSort) .'/'. 
													$skin->ShowArrow('3','UE_score3',$orderName,$orderSort));
		*/
		$titleArr[] = array('width'=>'7%',	'name'=>$skin->ShowArrow('审核','IF_state',$orderName,$orderSort));
		$titleArr[] = array('width'=>'12%',	'name'=>'复制&ensp;修改&ensp;删除');
		$skin->TableTitleArr($titleArr);

	}else{
		// 文章管理 列表
		$titleArr[] = array('width'=>'4%',	'name'=>'<input type="checkbox" id="selAll" name="selAll" onclick="CheckBoxAll()" />');
		$titleArr[] = array('width'=>'5%',	'name'=>'序号');
		$titleArr[] = array('width'=>'5%',	'name'=>$skin->ShowArrow('ID','IF_ID',$orderName,$orderSort));
		$titleArr[] = array('width'=>'26%',	'name'=>$skin->ShowArrow('标题','IF_theme',$orderName,$orderSort));
		if (in_array($refListMode, $listModeArr)){
			switch ($refListMode){
				case 'checkUser':		$modeFieldStr = '付费阅读';			break;
				case 'imgFileNum':		$modeFieldStr = '图片附件数量';		break;
				default :				$modeFieldStr = '其他';				break;
			}
			$titleArr[] = array('width'=>'26%',	'name'=>$modeFieldStr);
		}else{
			$titleArr[] = array('width'=>'13%',	'name'=>'属性');
			$titleArr[] = array('width'=>'13%',	'name'=>'栏目/专题'. AppReport::InfoTr1($skin, $orderName, $orderSort));
		}
		$titleArr[] = array('width'=>'10%',	'name'=>$skin->ShowArrow('发布日期','IF_time',$orderName,$orderSort));
		$titleArr[] = array('width'=>'6%',	'name'=>$skin->ShowArrow('阅读量','IF_readNum',$orderName,$orderSort));
		$titleArr[] = array('width'=>'8%',	'name'=>$skin->ShowArrow('电脑','IF_state',$orderName,$orderSort) .'/'. 
													$skin->ShowArrow('WAP状态','IF_wapState',$orderName,$orderSort));
		$titleArr[] = array('width'=>'11%',	'name'=>'复制&ensp;修改&ensp;删除');
		$skin->TableTitleArr($titleArr);
	}

	$pageSize	= $MB->mMbRow['MB_itemNum'];		//每页条数
	$page		= OT::GetInt('page');
	$showRow=$DB->GetLimit($SQLstr . $whereInfoTypeIdStr .' order by '. $orderName .' '. $orderSort, $pageSize, $page);
	if (! $showRow){
		$infoCount = $DB->GetOne('select count(1) from '. OT_dbPref .'info');
		if ($infoCount == 0){
			$noAlert = '暂无内容<span style="color:#000;">（如要文章ID重置为1，请到【管理员专区】→【程序文件检查】-[SQL语句调试] 快捷指令：◆文章ID重置为1）</span>';
		}else{
			$noAlert = '暂无内容';
		}
		$skin->TableNoData($noAlert);
	}else{
		$recordCount = $DB->GetRowCount();
		$pageCount = ceil($recordCount / $pageSize);
		if ($page < 1 || $page > $pageCount){ $page = 1; }

		$beforeURL	= GetUrl::CurrDir(1);
		$InfoType = new InfoType();
		echo('
		<tbody class="tabBody padd3td">
		');
		$number=1+($page-1)*$pageSize;
		$rowCount = count($showRow);
		for ($i=0; $i<$rowCount; $i++){
			if ($i % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }

			if ($MB->mMbRow['MB_itemNum'] < $maxPageSize){
				$imgStr = $auditNote = '';
				if (strlen($showRow[$i]['IF_img']) > 0){
					$imgMode = Info::ImgMode($showRow[$i]['IF_img']);
					switch ($imgMode){
						case 1:		// 本地图
							$imgStr .= '<a href="'. InfoImgAdminDir . $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgAlt.gif" alt="本地缩略图" title="本地缩略图" style="margin-left:2px;" /></a>';
							break;
					
						case 2:		// 远程图
							$imgStr .= '<a href="'. $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgRemote.gif" alt="远程缩略图" title="远程缩略图" style="margin-left:2px;" /></a>';
							break;
					
						case 3:		// 云存储
							$imgStr .= '<a href="'. $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgOss.gif" alt="云存储缩略图" title="云存储缩略图" style="margin-left:2px;" /></a>';
							break;
					
						case 10:	// 自动配图
							$imgStr .= '<a href="'. InfoImgAdminDir . $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgAuto.gif" alt="自动配缩略图" title="自动配缩略图" style="margin-left:2px;" /></a>';
							break;
					
						case 13:	// 自动配图云存储
							$imgStr .= '<a href="'. $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgOssAuto.gif" alt="自动配图云存储" title="自动配图云存储" style="margin-left:2px;" /></a>';
							break;
					}
					/* if (Is::HttpUrl($showRow[$i]['IF_img'])){
						$imgStr .= '<a href="'. $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgPc.gif" alt="远程缩略图" title="远程缩略图" style="margin-left:2px;" /></a>';
					}else{
						$imgStr .= '<a href="'. InfoImgAdminDir . $showRow[$i]['IF_img'] .'" target="_blank"><img src="images/imgAlt.gif" alt="本地缩略图" title="本地缩略图" style="margin-left:2px;" /></a>';
					} */
				}
				if (strlen(''. $showRow[$i]['IF_URL']) > 3){
					$imgStr .= '<a href="'. $showRow[$i]['IF_URL'] .'" target="_blank"><img src="images/imgLink.png" alt="外部链接" title="外部链接" style="margin-left:2px;" /></a>';
				}
				if (strlen(''. $showRow[$i]['IF_fileStr']) > 8){
					if ($showRow[$i]['IF_isRenameFile'] == 1){
						$imgStr .= '<img src="images/img_fu2.png" alt="有附件，仅限会员下载" title="有附件，仅限会员下载" style="margin-left:2px;" />';
					}else{
						$imgStr .= '<img src="images/img_fu.png" alt="有附件" title="有附件" style="margin-left:2px;" />';
					}
				}
				if ($showRow[$i]['IF_isCheckUser'] > 0){
					$imgStr .= '<img src="images/img_xian.png" alt="限制/付费阅读" title="限制/付费阅读" style="margin-left:2px;" />';
				}
				// if (strpos(''. $showRow[$i]['IF_addition'],'|ori|') !== false){
				if ($showRow[$i]['IF_isOri'] == 1){
					$imgStr .= '<img src="images/img_ori.png" alt="原创" title="原创" style="margin-left:2px;" />';
				}
				if (strpos(''. $showRow[$i]['IF_addition'],'|contentImg|') !== false){
					$imgStr .= '<img src="images/img_contentImg.png" alt="正文显示缩略图" title="正文显示缩略图" style="margin-left:2px;" />';
				}
				if (strpos(''. $showRow[$i]['IF_addition'],'|noMakeHtml|') !== false){
					$imgStr .= '<img src="images/img_html0.png" alt="提交不生成静态页" title="提交不生成静态页" style="margin-left:2px;" />';
				}
				if (strpos(''. $showRow[$i]['IF_addition'],'|noInfoType|') !== false){
					$imgStr .= '<img src="images/img_infoType0.png" alt="栏目[文章设置覆盖]无效" title="栏目[文章设置覆盖]无效" style="margin-left:2px;" />';
				}

				if ($showRow[$i]['IF_isAudit'] == 1){
					$infoHref='../'. Url::NewsID($showRow[$i]['IF_infoTypeDir'],$showRow[$i]['IF_datetimeDir'],$showRow[$i]['IF_ID']);
				}else{
					if ($showRow[$i]['IF_isAudit'] == 2 || strlen($showRow[$i]['IF_auditNote']) > 0){
						$auditNote = '<div style="padding-top:3px;color:red;">被拒绝原因：'. $showRow[$i]['IF_auditNote'] .'</div>';
					}
					$infoHref='../news/?'. $showRow[$i]['IF_ID'] .'.html&rnd=user'. $showRow[$i]['IF_userID'] .'';
				}

				$infoUrl = Url::NewsID($showRow[$i]['IF_infoTypeDir'],$showRow[$i]['IF_datetimeDir'],$showRow[$i]['IF_ID'],0,$beforeURL);
				$themeAddi = '';
				if (AppResBaidu::Jud()){ $themeAddi .= ResShoulu($showRow[$i]['IF_ID'],$showRow[$i]['IF_resBaidu'], '百度',$infoUrl); }
				if (AppRes360::Jud()){ $themeAddi .= ResShoulu($showRow[$i]['IF_ID'],$showRow[$i]['IF_res360'], '360',$infoUrl); }
				if (AppResSogou::Jud()){ $themeAddi .= ResShoulu($showRow[$i]['IF_ID'],$showRow[$i]['IF_resSogou'], '搜狗',$infoUrl); }
				if (AppResShenma::Jud()){ $themeAddi .= ResShoulu($showRow[$i]['IF_ID'],$showRow[$i]['IF_resShenma'], '神马',$infoUrl); }
				if (AppResToutiao::Jud()){ $themeAddi .= ResShoulu($showRow[$i]['IF_ID'],$showRow[$i]['IF_resToutiao'], '头条',$infoUrl); }
				if (AppResBing::Jud()){ $themeAddi .= ResShoulu($showRow[$i]['IF_ID'],$showRow[$i]['IF_resBing'], '必应',$infoUrl); }
				if (strlen($themeAddi) > 0){
					$themeAddi = '<div style="padding-top:6px;" title="最后检测时间：'. $showRow[$i]['IF_resTime'] .'">'. $themeAddi .'</div>';
				}
			}

			if ($MB->mMbRow['MB_itemNum'] >= $maxPageSize){
				// 每页数量超过 $maxPageSize 600 模式
				echo('
				<tr '. $bgcolor .' id="data'. $showRow[$i]['IF_ID'] .'">
					<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $showRow[$i]['IF_ID'] .'" /></td>
					<td align="center">'. $number .'</td>
					<td align="center">'. $showRow[$i]['IF_ID'] .'</td>
					<td align="left" style="word-break:break-all;">
						'. Str::MoreReplace($showRow[$i]['IF_theme'],'html') .'&ensp;
						<a href="../news/?'. $showRow[$i]['IF_ID'] .'.html&rnd=user'. $showRow[$i]['IF_userID'] .'" target="_blank" class="font2_2">[预览]</a>
					</td>
					<td align="center">'. $showRow[$i]['IF_time'] .'</td>
					<td align="center">
						<img src="images/img_copy.gif" style="cursor:pointer" onclick=\'document.location.href="?mudi=add&mudi2=copy&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IF_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="复制" title="复制" />&ensp;&ensp;
						<img src="images/img_rev.gif" style="cursor:pointer" onclick=\'document.location.href="?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IF_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" title="修改" />&ensp;&ensp;
						<img src="images/img_del.gif" style="cursor:pointer" onclick=\'if(confirm("你确定要删除？")==true){DataDeal.location.href="info_deal.php?mudi=del&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme='. urlencode($showRow[$i]['IF_theme']) .'&dataID='. $showRow[$i]['IF_ID'] .'"}\' alt="删除" title="删除" />
					</td>
				</tr>
				');
			}elseif ($dataMode == 'user'){
				// 会员投稿 列表
				if ($showRow[$i]['IF_isGetScore'] == 1){
					$scoreStr = '已获得：&#10;';
					$scoreStr .= $userSysArr['US_score1Name'] .'：'. $showRow[$i]['IF_getScore1'] .'&#10;';
					if ($userSysArr['US_isScore2'] == 1){
						$scoreStr .= $userSysArr['US_score2Name'] .'：'. $showRow[$i]['IF_getScore2'] .'&#10;';
					}
					if ($userSysArr['US_isScore3'] == 1){
						$scoreStr .= $userSysArr['US_score3Name'] .'：'. $showRow[$i]['IF_getScore3'] .'&#10;';
					}
					$getScoreStr = '<div class="font1_2d" title="'. $scoreStr .'">[已得分]</div>';
					$infoScoreStr = '<div style="color:blue;">已获得积分</div>'. Area::UserScoreList($showRow[$i]['IF_getScore1'],$showRow[$i]['IF_getScore2'],$showRow[$i]['IF_getScore2']);

				}else{
					$scoreStr = '预计获得：&#10;';
					$scoreStr .= $userSysArr['US_score1Name'] .'：'. $newsAddScoreArr['US_score1'] .'&#10;';
					if ($userSysArr['US_isScore2'] == 1){
						$scoreStr .= $userSysArr['US_score2Name'] .'：'. $newsAddScoreArr['US_score2'] .'&#10;';
					}
					if ($userSysArr['US_isScore3'] == 1){
						$scoreStr .= $userSysArr['US_score3Name'] .'：'. $newsAddScoreArr['US_score3'] .'&#10;';
					}
					$getScoreStr = '<div class="font1_2d" title="'. $scoreStr .'">[预计得分]</div>';
					$infoScoreStr = '<div>预计获得</div>'. Area::UserScoreList($newsAddScoreArr['US_score1'],$newsAddScoreArr['US_score2'],$newsAddScoreArr['US_score3']);
				}

				$smTheme = $smContent = '';
				if ($showRow[$i]['IF_isAudit'] == 1){
					$smTheme	= '文章审核通过《'. $showRow[$i]['IF_theme'] .'》';
					$smContent	= '恭喜！文章《'. $showRow[$i]['IF_theme'] .'》审核通过！';
				}elseif ($showRow[$i]['IF_isAudit'] == 2){
					$smTheme	= '文章审核被拒绝《'. $showRow[$i]['IF_theme'] .'》';
					$smContent	= '文章审核被拒绝《'. $showRow[$i]['IF_theme'] .'》！原因如下：';
				}

				/*
				<div>'. $showRow[$i]['UE_realname'] .'</div>
				<td align="left">'. Area::UserScoreList($showRow[$i]['UE_score1'],$showRow[$i]['UE_score2'],$showRow[$i]['UE_score3']) .'</td>
				*/
				echo('
				<tr '. $bgcolor .' id="data'. $showRow[$i]['IF_ID'] .'">
					<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $showRow[$i]['IF_ID'] .'" /></td>
					<td align="center">'. $number .'</td>
					<td align="center">'. $showRow[$i]['IF_ID'] .'</td>
					<td align="left" style="word-break:break-all;">
						<span style="'. $showRow[$i]['IF_themeStyle'] .'">'. Str::MoreReplace($showRow[$i]['IF_theme'],'html') .'</span>&ensp;'. $imgStr .'&ensp;
						<a href="../news/?'. $showRow[$i]['IF_ID'] .'.html&rnd=user'. $showRow[$i]['IF_userID'] .'" target="_blank" class="font2_2">[预览]</a>
						'. $auditNote . $themeAddi .'
					</td>
					<td align="left">'. AppReport::InfoDiv1($showRow[$i]['IF_ID'], $showRow[$i]['IF_reportNum']) . $InfoType->TypeStrCN($showRow[$i]['IF_typeStr']) . TopicListCN($showRow[$i]['IF_topicList'], $InfoType) .'</td>
					<td align="center">'. $showRow[$i]['IF_time'] .'</td>
					<td align="center">
						'. $showRow[$i]['IF_username'] . AdmArea::UserInfoImg($showRow[$i]['IF_userID']) .'
						<div>'. AppSiteMessage::AdminAddBtn($MB->mUserID, $showRow[$i]['IF_userID'], $showRow[$i]['IF_username'], $smTheme, $smContent) .'</div>
					</td>
					<td align="left">'. $infoScoreStr .'</td>
					<td align="center">'. Adm::SwitchAddi('info',$showRow[$i]['IF_ID'],'已审核',$showRow[$i]['IF_isAudit'],'isAudit','') .'<br /><span id="infoHtmlBox'. $showRow[$i]['IF_ID'] .'"></span>'. $getScoreStr .'</td>
					<td align="center">
						<img src="images/img_copy.gif" style="cursor:pointer" onclick=\'document.location.href="?mudi=add&mudi2=copy&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IF_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="复制" title="复制" />&ensp;&ensp;
						<img src="images/img_rev.gif" style="cursor:pointer" onclick=\'document.location.href="?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IF_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" title="修改" />&ensp;&ensp;
						<img src="images/img_del.gif" style="cursor:pointer" onclick=\'if(confirm("你确定要删除？")==true){DataDeal.location.href="info_deal.php?mudi=del&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme='. urlencode($showRow[$i]['IF_theme']) .'&dataID='. $showRow[$i]['IF_ID'] .'"}\' alt="删除" title="删除" />
					</td>
				</tr>
				');
			}else{
				// 文章管理 列表
				$idAddiStr = '';
				if ($showRow[$i]['IF_userID'] > 0){
					if ($showRow[$i]['IF_type'] == 'user'){
						$idAddiStr = '<div>'. AdmArea::UserInfoImg($showRow[$i]['IF_userID'],'会员投稿，') .'</div>';
					}else{
						$idAddiStr = '<div>'. AdmArea::UserInfoImg($showRow[$i]['IF_userID'],'后台投稿，','','2') .'</div>';
					}
				}elseif ($showRow[$i]['IF_type'] == 'api'){
					$idAddiStr = '<div><a href="'. $showRow[$i]['IF_collUrl'] .'" target="_blank" title="API数据同步 项目ID：'. $showRow[$i]['IF_collTypeID'] .'，文章ID：'. $showRow[$i]['IF_collID'] .'，查看外站文章网址"><img src="images/api.png" style="cursor:pointer;margin-left:3px;" valign="top" /></a></div>';
				}elseif ($showRow[$i]['IF_type'] == 'import'){
					$idAddiStr = '<div title="导入文章"><img src="images/txt.png" style="cursor:pointer;margin-left:3px;" valign="top" /></div>';
				}elseif ($showRow[$i]['IF_type'] == 'coll' || $showRow[$i]['IF_collID'] > 0){
					$idAddiStr = '<div><a href="'. $showRow[$i]['IF_collUrl'] .'" target="_blank" title="采集，项目ID：'. $showRow[$i]['IF_collID'] .'，查看采集网址"><img src="images/img_coll.gif" style="cursor:pointer;margin-left:3px;" valign="top" /></a></div>';
				}
				if (strlen($showRow[$i]['IF_themeKey']) > 0){
					$imgStr .= '<img src="images/img_tag.png" alt="标签：'. $showRow[$i]['IF_themeKey'] .'" title="标签：'. $showRow[$i]['IF_themeKey'] .'" style="margin-left:2px;" />';
				}
				echo('
				<tr '. $bgcolor .' id="data'. $showRow[$i]['IF_ID'] .'">
					<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $showRow[$i]['IF_ID'] .'" /></td>
					<td align="center">'. $number .'</td>
					<td align="center">'. $showRow[$i]['IF_ID'] . $idAddiStr .'</td>
					<td align="left" style="word-break:break-all;">
						<a href="'. $infoHref .'" target="_blank" class="font1_2" style="'. $showRow[$i]['IF_themeStyle'] .';"  onmouseover="this.name=this.style.color;this.style.color=\'#000000\';this.style.textDecoration=\'underline\';" onmouseout="this.style.color=this.name;this.style.textDecoration=\'\';" name="">'. Str::MoreReplace($showRow[$i]['IF_theme'],'html') .'</a>&ensp;'.  $imgStr .'&ensp;
						'. $auditNote . $themeAddi .'
					</td>
					'. ListModeItem($refListMode, $showRow[$i], $InfoType, $groupArr) .'
					<td align="center" title="发布时间：'. $showRow[$i]['IF_time'] .'&#10;修改时间：'. $showRow[$i]['IF_revTime'] .'">'. $showRow[$i]['IF_time'] .'</td>
					<td align="center">
						<div style="padding-bottom:3px;" title="对外阅读数">'. $showRow[$i]['IF_readNum'] .'</div>
						<span style="color:#c9c9c9;" title="评论数">'. $showRow[$i]['IF_replyNum'] .'</span>
						'. (($showRow[$i]['IF_readNumReal'] > 0 && $showRow[$i]['IF_readNumReal'] != $showRow[$i]['IF_replyNum']) ? ',<span style="color:blue;" title="真实阅读数">'. $showRow[$i]['IF_readNumReal'] .'</span>' : '') .'
					</td>
					<td align="center">
						'. Adm::SwitchBtn('info',$showRow[$i]['IF_ID'],$showRow[$i]['IF_state'],'state') .'/
						'. Adm::SwitchBtn('info',$showRow[$i]['IF_ID'],$showRow[$i]['IF_wapState'],'wapState','userState') .'
						<div id="infoHtmlBox'. $showRow[$i]['IF_ID'] .'"></div>
					</td>
					<td align="center">
						<img src="images/img_copy.gif" class="pointer" onclick=\'document.location.href="?mudi=add&mudi2=copy&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IF_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="复制" title="复制" />&ensp;
						<img src="images/img_rev.gif" class="pointer" onclick=\'document.location.href="?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IF_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" title="修改" />&ensp;
						<img src="images/img_del.gif" class="pointer" onclick=\'if(confirm("你确定要删除？")==true){DataDeal.location.href="info_deal.php?mudi=del&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme='. urlencode($showRow[$i]['IF_theme']) .'&dataID='. $showRow[$i]['IF_ID'] .'"}\' alt="删除" title="删除" />
					</td>
				</tr>
				');
			}
			$number ++;
		}
		echo('
		</tbody>
		<tr class="tabColorB padd5">
			<td align="left" colspan="20">
				<input type="button" value="全选" class="tabBottomBtn allSel" onclick="AllSelBox()" />
				<input type="button" value="反选" class="tabBottomBtn revSel" onclick="RevSelBox()" />
				&ensp;
				<input type="submit" value="批量删除" class="tabBottomBtn del" />
				&ensp;&ensp;
				<select id="moreSetTo" name="moreSetTo" onchange="MoreSetTo()" style="width:150px;">
					<option value="">属性批量设置成...</option>
					<option value="audit1" style="color:#0066CC;">已审核√</option>
					<option value="audit0" style="color:#707070;">已审核ㄨ</option>
					<option value="new1" style="color:#0066CC;">最新消息√</option>
					<option value="new0" style="color:#707070;">最新消息ㄨ</option>
					<option value="homeThumb1" style="color:#0066CC;">首页缩略图√</option>
					<option value="homeThumb0" style="color:#707070;">首页缩略图ㄨ</option>
					<option value="thumb1" style="color:#0066CC;">缩略图√</option>
					<option value="thumb0" style="color:#707070;">缩略图ㄨ</option>
					<option value="img1" style="color:#0066CC;">滚动图片√</option>
					<option value="img0" style="color:#707070;">滚动图片ㄨ</option>
					<option value="flash1" style="color:#0066CC;">幻灯片√</option>
					<option value="flash0" style="color:#707070;">幻灯片ㄨ</option>
					<option value="marquee1" style="color:#0066CC;">滚动信息√</option>
					<option value="marquee0" style="color:#707070;">滚动信息ㄨ</option>
					<option value="recom1" style="color:#0066CC;">推荐√</option>
					<option value="recom0" style="color:#707070;">推荐ㄨ</option>
					<option value="top1" style="color:#0066CC;">置顶√</option>
					<option value="top0" style="color:#707070;">置顶ㄨ</option>
					<option value="ori1" style="color:#0066CC;">原创√</option>
					<option value="ori0" style="color:#707070;">原创ㄨ</option>
					<option value="contentImg1" style="color:#0066CC;">正文显示缩略图√</option>
					<option value="contentImg0" style="color:#707070;">正文显示缩略图ㄨ</option>
					<option value="vote0">投票：关闭</option>
					<option value="vote1">投票：心情</option>
					<option value="vote2">投票：顶踩</option>
					<option value="vote11">投票：百度喜欢按钮</option>
					<option value="markNews1" style="color:#0066CC;">相关文章：开启</option>
					<option value="markNews0" style="color:red;">相关文章：关闭</option>
					<option value="userFile0" style="color:red;">下载附件：无</option>
					<option value="userFile1" style="color:#0066CC;">下载附件：仅限会员</option>
					<option value="userFile2" style="color:green;">下载附件：会员+直付</option>
					<option value="reply1">评论：开启</option>
					<option value="reply10">评论：仅限会员</option>
					<option value="reply0">评论：关闭</option>
					<option value="tagFc">标签：分词获取</option>
					<option value="tagLocal">标签：本地获取</option>
					<option value="state1" style="color:#0066CC;">电脑版状态：显示</option>
					<option value="state0" style="color:red;">电脑版状态：隐藏</option>
					<option value="wapState1" style="color:#0066CC;">手机版状态：显示</option>
					<option value="wapState0" style="color:red;">手机版状态：隐藏</option>
					<option value="contentImg1" style="color:#0066CC;">附加功能：正文显示缩略图√</option>
					<option value="contentImg0" style="color:#707070;">附加功能：正文显示缩略图ㄨ</option>
					<option value="noMakeHtml1" style="color:#0066CC;">附加功能：提交不生成静态页√</option>
					<option value="noMakeHtml0" style="color:#707070;">附加功能：提交不生成静态页ㄨ</option>
					<option value="noInfoType1" style="color:#0066CC;">附加功能：栏目[文章设置覆盖]无效√</option>
					<option value="noInfoType0" style="color:#707070;">附加功能：栏目[文章设置覆盖]无效ㄨ</option>
					<option value="checkUser1" style="color:#0066CC;">限制阅读：仅限会员√</option>
					<option value="checkUser0" style="color:#707070;">限制阅读：仅限会员ㄨ</option>
					'. AppMoneyQuick::InfoOptionBox2() .'
					'. AppNewsPwd::InfoOptionBox2() .'
					'. AppNewsEnc::InfoOptionBox2() .'
					'. AppMapBaidu::InfoOptionBox2() .'
					'. AppResBaidu::InfoOptionBox2() .'
					'. AppRes360::InfoOptionBox2() .'
					'. AppResSogou::InfoOptionBox2() .'
					'. AppResShenma::InfoOptionBox2() .'
					'. AppResToutiao::InfoOptionBox2() .'
					'. AppResBing::InfoOptionBox2() .'
					'. AppChinaz::InfoOptionBox() .'
					'. AppInfoImport::Show('
						<option value="importTxt2" style="color:red;">文章导出txt文件(带ID)</option>
						<option value="importTxt" style="color:red;">文章导出txt文件(带ID和标题，需PHP≥7.1)</option>
						') .'
					<option value="imgSaveWeb">图片保存至：网站</option>
					'. AppOssAliyun::InfoOptionBox2() .'
					'. AppOssQiniu::InfoOptionBox2() .'
					'. AppOssUpyun::InfoOptionBox2() .'
					'. AppOssFtp::InfoOptionBox2() .'
					'. AppAutoImg::InfoOptionBox2() .'
					<option value="timeNew">发布时间：当前时间</option>
					<option value="contImgFile">检测正文图片和附件数量</option>
				</select>
				<input type="hidden" id="moreSetToCN" name="moreSetToCN" value="" />

				&ensp;
				<select id="moreMoveTo" name="moreMoveTo" onchange="MoreMoveTo()" style="width:150px;">
					<option value="">栏目批量移动到...</option>
					'. $moveOptionStr .'
				</select>
				<input type="hidden" id="moreMoveToCN" name="moreMoveToCN" value="" />

				&ensp;
				<select id="moreTxtSel" name="moreTxtSel" onchange="CheckMoreTxt();">
					<option value="">项目批量设置成...</option>
					<option value="topAddiID">头附加内容</option>
					<option value="addiID">尾附加内容</option>
					<option value="source">来源</option>
					<option value="writer">作者</option>
					<option value="readNum">阅读量</option>
					<option value="score1">限制阅读积分1</option>
					<option value="score2">限制阅读积分2</option>
					<option value="score3">限制阅读积分3</option>
					<option value="cutScore1">付费阅读积分1</option>
					<option value="cutScore2">付费阅读积分2</option>
					<option value="cutScore3">付费阅读积分3</option>
					<option value="freeGroup">免费阅读组</option>
					<option value="userGroup">限制/付费阅读组</option>
					'. AppTopic::Show('<option value="topic">专题</option>') .'
					'. AppMoneyQuick::Show('<option value="cutQuickMoney">直接在线支付</option>') .'
				</select>'.
				'<select id="moreAddiTo" name="moreAddiTo" onchange="MoreAddiTo()" style="width:150px;display:none;">
					<option value="">附加内容批量设置...</option>
					<option value="0">无</option>
					');
					$addiexe=$DB->query('select IW_ID,IW_theme,IW_state from '. OT_dbPref ."infoWeb where IW_type='news' order by IW_state DESC,IW_rank ASC");
					while ($row = $addiexe->fetch()){
						if ($row['IW_state']==1){ $stateStr=''; }else{ $stateStr=' (隐藏)'; }
						echo('<option value="'. $row['IW_ID'] .'">'. $row['IW_theme'] . $stateStr .'</option>');
					}
					unset($addiexe);

				echo('
				</select>
				<input type="hidden" id="moreAddiToCN" name="moreAddiToCN" value="" />'.
				'<span id="moreGroupBox" style="display:none;"><label><input type="checkbox" name="userGroupList[]" value="[empty]" title="全部留空">空</label>&ensp;&ensp;'. $userGroupStr .'<input type="button" onclick="MoreGroupTo()" value="设置" /></span>'.
				'<span id="moreTopicBox" style="display:none;">'. (strlen(''. $topicOptionStr) > 1 ? $topicOptionStr : '无专题，请先添加') .'<input type="button" onclick="MoreTopicTo()" value="设置" /></span>'.
				'<span id="moreTxtBox" style="display:none;"><input type="text" id="moreTxtVal" name="moreTxtVal" /><input type="button" onclick="MoreTxtTo()" value="设置" /></span>
			</td>
		</tr>
		');
	}
	unset($showRow);

	echo('</form>');

	$skin->TableBottom2($pageCount, $pageSize, $recordCount);

	if ($dataMode == 'user'){
		echo('<div style="padding:6px;color:red;">提醒：如果要做【审核被拒绝】操作，请进入[修改]-[文章属性]选择[被拒绝]，就会出现拒绝原因填写框。</div>');
	}else{
		echo('<div style="padding:6px;color:red;">提醒：【WAP状态】手机版状态，如没有买手机版插件，可以忽略该选项。</div>');
	}
}



// 内容表管理
function InfoContent(){
	global $DB,$MB,$skin,$mudi,$dataType,$dataTypeCN,$pageCount,$recordCount,$systemArr,$userSysArr,$infoSysArr;

	$dataTypeCN		= '内容表';
	$dataMode		= OT::GetStr('dataMode');
	$dataModeStr	= OT::GetStr('dataModeStr');
	$selTabID		= OT::GetInt('selTabID');
		if ($selTabID > $infoSysArr['IS_tabNum']){ $selTabID = $infoSysArr['IS_tabNum']; }

	echo(
	AdmArea::TopBackBtn('info.php?mudi=manage&dataType=news&dataTypeCN=%E6%96%87%E7%AB%A0', '返回 文章管理') .'

	<div style="padding:12px 6px 6px 6px;">
		内容表：<select id="selType" name="selType" onchange="document.location.href=\'?mudi=infoContent&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&selTabID=\'+ this.value;">
			<option value="">请先选择</option>
			');
			$tabArr = $DB->GetTabArr('xiao');
			for ($i=1; $i<=$infoSysArr['IS_tabNum']; $i++){
				if (in_array(strtolower(OT_dbPref) .'infocontent'. $i, $tabArr)){
					$maxNewsNum = $DB->GetOne('select count(IC_ID) from '. OT_dbPref .'infoContent'. $i);
					echo('<option value="'. $i .'" '. Is::Selected($selTabID,$i) .'>内容表'. $i .'（'. $maxNewsNum .'篇）</option>');
				}
			}
		echo('
		</select>
	</div>
	');

	if ($selTabID == 0){
		die('<div style="margin:0 auto;text-align:center;font-size:18px;">请先选择内容表</div>');
	}

	echo('
	<form id="listForm" name="listForm" method="post" action="info_deal.php?mudi=infoContentMoreDel" onsubmit="return CheckListForm()">
	<script language="javascript" type="text/javascript">document.write (\'<input type="hidden" name="backURL" value="\'+ document.location.href +\'" />\')</script>
	<input type="hidden" name="tabID" value="'. $selTabID .'" />
	<input type="hidden" name="dataType" value="'. $dataType .'" />
	<input type="hidden" name="dataTypeCN" value="'. $dataTypeCN .'" />
	');

	$skin->TableTop2('share_list.gif','',$dataTypeCN .'列表');
	$skin->TableItemTitle('4%,5%,5%,25%,41%,8%,12%','<input type="checkbox" id="selAll" name="selAll" onclick="CheckBoxAll()" />,序号,ID,标题,内容,发布时间,复制　修改　删除');

	$pageSize	= $MB->mMbRow['MB_itemNum'];		//每页条数
	$page		= OT::GetInt('page');
	$showRow=$DB->GetLimit('select * from '. OT_dbPref .'infoContent'. $selTabID,$pageSize,$page);
	if (! $showRow){
		$skin->TableNoData();
	}else{
		$recordCount=$DB->GetRowCount();
		$pageCount=ceil($recordCount/$pageSize);
		if ($page < 1 || $page > $pageCount){$page=1;}

		echo('
		<tbody class="tabBody padd3td">
		');
		$number=1+($page-1)*$pageSize;
		$rowCount = count($showRow);
		for ($i=0; $i<$rowCount; $i++){
			if ($i % 2 == 1){ $bgcolor='class="tabColorTr"'; }else{ $bgcolor=''; }

			$funcDelStr = '<img src="images/img_del.gif" style="cursor:pointer" onclick=\'if(confirm("你确定要删除？")==true){DataDeal.location.href="info_deal.php?mudi=infoContentDel&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&theme=&dataID='. $showRow[$i]['IC_ID'] .'&tabID='. $selTabID .'"}\' alt="删除" title="删除" />';

			$chkRow = $DB->GetRow('select IF_time,IF_theme,IF_tabID from '. OT_dbPref .'info where IF_ID='. $showRow[$i]['IC_ID']);
			if ($chkRow){
				$IF_time = $chkRow['IF_time'];
				$IF_theme = Str::MoreReplace($chkRow['IF_theme'],'html');
				$IF_tabID = $chkRow['IF_tabID'];
				if ($selTabID != $IF_tabID){
					$IF_theme .= '<span style="color:red">（内容表不匹配！文章指定的是内容表'. $IF_tabID .'）</span>';
				}else{
					$funcDelStr = '&ensp;&ensp;';
				}
			}else{
				$IF_time = '';
				$IF_theme = '<span style="color:red">（没匹配到文章！可以删除！）</span>';
				$IF_tabID = 0;
			}
			$chkRow = null;
	
			echo('
			<tr '. $bgcolor .' id="data'. $showRow[$i]['IC_ID'] .'">
				<td align="center" class="selCheckbox"><input type="checkbox" name="selDataID[]" value="'. $showRow[$i]['IC_ID'] .'" /></td>
				<td align="center">'. $number .'</td>
				<td align="center">'. $showRow[$i]['IC_ID'] .'</td>
				<td align="left" style="word-break:break-all;">'. $IF_theme .'</td>
				<td align="left">'. Str::LimitChar(Info::FilterContentKey($showRow[$i]['IC_content']),300) .'...</td>
				<td align="center">'. $IF_time .'</td>
				<td align="center">
					<a href="../news/?'. $showRow[$i]['IC_ID'] .'.html&rnd=user0" target="_blank"><img src="images/img_det.gif" style="cursor:pointer" alt="预览" title="预览" /></a>&ensp;&ensp;
					<img src="images/img_rev.gif" style="cursor:pointer" onclick=\'document.location.href="?mudi=rev&dataType='. $dataType .'&dataTypeCN='. urlencode($dataTypeCN) .'&dataMode='. $dataMode .'&dataModeStr='. $dataModeStr .'&dataID='. $showRow[$i]['IC_ID'] .'&backURL="+ encodeURIComponent(document.location.href)\' alt="修改" title="修改" />&ensp;&ensp;
					'. $funcDelStr .'
				</td>
			</tr>
			');
			$number ++;
		}
		echo('
		</tbody>
		<tr class="tabColorB padd5">
			<td align="left" colspan="20">
				<input type="button" value="全选" class="tabBottomBtn allSel" onclick="AllSelBox()" />
				<input type="button" value="反选" class="tabBottomBtn revSel" onclick="RevSelBox()" />
				&ensp;
				<input type="submit" value="批量删除" class="tabBottomBtn del" />
			</td>
		</tr>
		');
	}
	unset($showRow);

	echo('</form>');

	$skin->TableBottom2($pageCount, $pageSize, $recordCount);
}



function TopicListCN($topicList, $InfoType){
	$retStr = $InfoType->TopicListCN($topicList);
	if (strlen($retStr) > 1){
		$retStr = '<div style="margin-top:7px;color:green;"><b>专题:</b>'. $retStr .'</div>';
	}
	return $retStr;
}


function InfoItem($moreArea, $currArea, &$moreStr, $currStr){
	if (strpos(''. $moreArea, '|'. $currArea .'|') !== false){
		$moreStr .= $currStr;
	}else{
		echo($currStr);
	}
}

function ResShoulu($infoID, $val, $str, $infoUrl=''){
	$urlEn = urlencode($infoUrl);
	switch ($str){
		case '百度':
			$typeEN = 'baidu';
			$href = 'https://www.baidu.com/s?ie=utf-8&wd='. $urlEn;
			break;

		case '360':
			$typeEN = 'so';
			$href = 'https://www.so.com/s?ie=utf-8&fr='. OT_SOFTTYPE .'.com&src=home_so.com&q='. $urlEn;
			break;

		case '搜狗':
			$typeEN = 'sogou';
			$href = 'https://www.sogou.com/web?ie=utf8&_asf='. OT_SOFTTYPE .'.com&query='. $urlEn;
			break;
	
		case '神马':
			$typeEN = 'shenma';
			$href = 'https://m.sm.cn/s?q='. $urlEn;
			break;
	
		case '头条':
			$typeEN = 'toutiao';
			$href = 'https://so.toutiao.com/search?dvpf=pc&source=input&keyword='. $urlEn;
			break;
	
		case '必应':
			$typeEN = 'bing';
			$href = 'https://cn.bing.com/search?q='. $urlEn;
			break;

		default :
			$typeEN = 'baidu';
			$href = 'https://www.baidu.com/s?ie=utf-8&wd='. $urlEn;
			break;
	}

	$retStr = '';
	if ($val == 1){
		$retStr = '<a id="'. $typeEN . $infoID .'" href="'. $href .'" target="_blank">'. StrCN::ResCN($str,$val) .'</a>';
	}elseif ($val == 2){
		$retStr = '<a id="'. $typeEN . $infoID .'" href="'. $href .'" target="_blank">'. StrCN::ResCN($str,$val) .'</a>';
	}elseif ($val == 11){
		$retStr = '<a id="'. $typeEN . $infoID .'" href="'. $href .'" target="_blank">'. StrCN::ResCN($str,$val) .'</a>';
	}elseif ($val == 12){
		$retStr = '<a id="'. $typeEN . $infoID .'" href="'. $href .'" target="_blank">'. StrCN::ResCN($str,$val) .'</a>';
	}else{
		$retStr = '<a id="'. $typeEN . $infoID .'" href="'. $href .'" target="_blank">'. StrCN::ResCN($str,$val) .'</a>';
	}
	$retStr = '
		<div style="float:left;" onmouseover=\'$id("'. $typeEN . $infoID .'Box").style.display="";\' onmouseout=\'$id("'. $typeEN . $infoID .'Box").style.display="none";\'>
			' .$retStr .'
			<div id="'. $typeEN . $infoID .'Box" style="position: relative;display:none;"><div style="position: absolute;width:65px;padding:2px 1px 3px 5px; top:-1px;left:-1px;line-height:1.6;text-align:left;background:#fff;border:1px #e6e6e6 solid;">
				<div><a href="#" class="font1_2" style="color:green;" onclick="AjaxGetDeal(\'info_deal.php?mudi=resDeal&dataID='. $infoID .'&type='. $typeEN .'&val=1\');return false;">已收录√</a></div>
				<div><a href="#" class="font1_2" style="color:red;" onclick="AjaxGetDeal(\'info_deal.php?mudi=resDeal&dataID='. $infoID .'&type='. $typeEN .'&val=11\');return false;">未收录×</a></div>
			</div></div>
		</div>
		';

	return $retStr;
}

function ListModeItem($refListMode, $row, $InfoType, $groupArr){
	if ($refListMode == 'checkUser'){
		// 仅限会员阅读
		$colorStr = $noteStr = '';
		if (strpos($row['IF_addition'],'|noInfoType|') !== false){
			$noteStr .= '<div style="color:green;padding-top:3px;"><b>栏目[文章设置覆盖]无效</b></div>';
		}/* else{
			$noteStr .= '<div style="color:blue;padding-top:3px;">栏目[文章设置覆盖]有效</div>';
		} */
		if ($row['IF_isCheckUser'] > 0){
			if (strpos($row['IF_addition'],'|checkUser|') !== false){
				$noteStr .= '<div style="color:red;padding-top:3px;"><b>『 仅限会员阅读 』开启</b></div>';
				if ($row['IF_score1'] + $row['IF_score2'] + $row['IF_score3'] > 0){
					$noteStr .= '<div>【限制阅读积分】①：<span style="color:blue;">'. $row['IF_score1'] .'</span>，②：<span style="color:blue;">'. $row['IF_score2'] .'</span>，③：<span style="color:blue;">'. $row['IF_score3'] .'</span></div>';
				}
				if ($row['IF_cutScore1'] + $row['IF_cutScore2'] + $row['IF_cutScore3'] > 0){
					$noteStr .= '<div>【付费阅读积分】①：<span style="color:blue;">'. $row['IF_cutScore1'] .'</span>，②：<span style="color:blue;">'. $row['IF_cutScore2'] .'</span>，③：<span style="color:blue;">'. $row['IF_cutScore3'] .'</span></div>';
				}
				if (strlen(''. $row['IF_freeGroupList']) > 2){
					$noteStr .= '<div>【免费阅读组】<span style="color:blue;">'. LMI_group($row['IF_freeGroupList'], $groupArr) .'</span></div>';
				}
				if (strlen(''. $row['IF_userGroupList']) > 2){
					$noteStr .= '<div>【付费阅读组】<span style="color:blue;">'. LMI_group($row['IF_userGroupList'], $groupArr) .'</span></div>';
				}
			}

			if (strpos($row['IF_addition'],'|checkReply|') !== false){
				$noteStr .= '<div style="color:red;padding-top:3px;"><b>『 会员回复可见 』开启</b></div>';
			}

			if (strpos($row['IF_addition'],'|checkQuick|') !== false){
				$noteStr .= '<div style="color:red;padding-top:3px;"><b>『 直接在线支付 』开启</b></div>';
				if ($row['IF_cutQuickMoney'] > 0){
					$noteStr .= '<div>【直接在线支付】<span style="color:blue;">'. $row['IF_cutQuickMoney'] .'</span> 元</div>';
				}
			}

			if (strpos($row['IF_addition'],'|checkPwd|') !== false){
				$noteStr .= '<div style="color:red;padding-top:3px;"><b>『 输入密码可见 』开启</b></div>';
				if (strlen(''. $row['IF_pwdAnswer']) > 0){
					$noteStr .= '<div>【密码框密码】<span style="color:blue;">'. $row['IF_pwdAnswer'] .'</span></div>';
				}
				if (strlen(''. $row['IF_pwdImg']) > 0){
					$noteStr .= '<div>【密码框图片】<span style="color:blue;">'. $row['IF_pwdImg'] .'</span></div>';
				}
				if (strlen(''. $row['IF_pwdNote']) > 0){
					$noteStr .= '<div>【密码框说明】<span style="color:blue;">'. $row['IF_pwdNote'] .'</span></div>';
				}
			}
		}else{
			$colorStr = 'color:#ddd;';
			$noteStr .= '<div>未开启限制/付费阅读</div>';
		}
		if ($row['IF_isCheckUser'] > 0){
			if ($row['IF_isEnc'] == 1){
				$noteStr .= '<div>【部分正文隐藏】<span style="color:blue;">开启</span></div>';
			}
			if (strlen($row['IF_addition']) > 0){
				$noteStr .= '<div>【附加隐藏项】<span style="color:blue;">'. LMI_addition($row['IF_addition']) .'</span></div>';
			}
		}
		$retStr = '
			<td align="left" style="line-height:1.4;'. $colorStr .'">
				'. $noteStr .'
			</td>
			';

	}elseif ($refListMode == 'imgFileNum'){
		// 图片附件数量
		$imgNumStr = '';
		if ($row['IF_imgHttpNum'] > 0){
			$imgNumStr .= '远程：'. ImgFileNumColor($row['IF_imgHttpNum']);
		}
		if ($row['IF_imgOssNum'] > 0){
			if (strlen($imgNumStr) > 0){ $imgNumStr .= '，'; }
			$imgNumStr .= '云存储：'. ImgFileNumColor($row['IF_imgOssNum']);
		}
		if ($row['IF_imgLocalNum'] > 0){
			if (strlen($imgNumStr) > 0){ $imgNumStr .= '，'; }
			$imgNumStr .= '本地：'. ImgFileNumColor($row['IF_imgLocalNum']);
		}
		if (strlen($imgNumStr) > 0){ $imgNumStr = '（'. $imgNumStr .'）'; }

		$fileNumStr = '';
		if ($row['IF_fileHttpNum'] > 0){
			$fileNumStr .= '远程：'. ImgFileNumColor($row['IF_fileHttpNum']);
		}
		if ($row['IF_fileOssNum'] > 0){
			if (strlen($fileNumStr) > 0){ $fileNumStr .= '，'; }
			$fileNumStr .= '云存储：'. ImgFileNumColor($row['IF_fileOssNum']);
		}
		if ($row['IF_fileLocalNum'] > 0){
			if (strlen($fileNumStr) > 0){ $fileNumStr .= '，'; }
			$fileNumStr .= '本地：'. ImgFileNumColor($row['IF_fileLocalNum']);
		}
		if (strlen($fileNumStr) > 0){ $fileNumStr = '（'. $fileNumStr .'）'; }

		$retStr = '
			<td align="left" style="line-height:1.4;">
				<div>【正文图片】总数：'. ImgFileNumColor($row['IF_imgNum']) . $imgNumStr .'</div>
				<div>【附件】总数：'. ImgFileNumColor($row['IF_fileNum']) . $fileNumStr .'</div>
				<div>【缩略图】'. ImgModeCN($row['IF_imgMode']) .'</div>
			</td>
			';

	}else{
		$retStr = '
			<td align="center" style="line-height:1.4;">'. $InfoType->AddiBtn($row['IF_ID'],$row['IF_isAudit'],$row['IF_isNew'],$row['IF_isHomeThumb'],$row['IF_isThumb'],$row['IF_isImg'],$row['IF_isFlash'],$row['IF_isMarquee'],$row['IF_isRecom'],$row['IF_isTop']) .'</td>
			<td align="left">
				'. AppReport::InfoDiv1($row['IF_ID'], $row['IF_reportNum']) . $InfoType->TypeStrCN($row['IF_typeStr']) . TopicListCN($row['IF_topicList'], $InfoType) .'
			</td>
			';
	}
	return $retStr;
}

function LMI_addition($str){
	$retStr = '';
	if (strpos($str, '|encMediaFile|') !== false){
		$retStr .= '[音频视频]';
	}
	if (strpos($str, '|encFile|') !== false){
		$retStr .= '[附件文件]';
	}
	return $retStr;
}

function LMI_group($str, $groupArr){
	$retArr = array();
	$selArr = explode(',', str_replace(array('[',']'), '', $str));
	foreach ($selArr as $val){
		if (isset($groupArr[$val])){
			$retArr[] = $groupArr[$val];
		}
	}
	return implode('、', $retArr);
}

function ImgModeCN($str){
	switch ($str){
		case 0:		return '无';
		case 1:		return '本地图';
		case 2:		return '<span style="color:blue;">远程图</span>';
		case 3:		return '<span style="color:green;">云存储</span>';
		case 10:	return '<span style="color:green;">自动配图</span>';
		case 13:	return '<span style="color:blue;">自动配图云存储</span>';
		default :	return '['. $str .']';
	}
}

function ImgFileNumColor($num){
	if ($num > 0){
		return '<span style="color:blue;">'. $num .'</span>';
	}elseif ($num == -1){
		return '<span style="color:red;">未检测</span>';
	}else{
		return $num;
	}
}
?>